IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Re: Here is what I did
Can't work it into the case statement, but you could do it this way:
\n        If htFieldAddrMap.ContainsKey(arr(0)) Then\n            If TypeOf htFieldAddrMap(arr(0)) Is TextBox Then\n                htFieldAddrMap(arr(0)).text = arr(1)\n            ElseIf TypeOf htFieldAddrMap(arr(0)) Is CheckBox Then\n                htFieldAddrMap(arr(0)).checked = arr(1)\n            ElseIf TypeOf htFieldAddrMap(arr(0)) Is NumericUpDown Then\n                htFieldAddrMap(arr(0)).value = arr(1)\n            ElseIf TypeOf htFieldAddrMap(arr(0)) Is ComboBox Then\n                htFieldAddrMap(arr(0)).text = arr(1)\n            Else\n                MsgBox("Unhandled Type:" & arr(0) & "]:[" _\n                & htFieldAddrMap(arr(0)).GetType().ToString & "]")\n            End If\n        End If\n
--
Chris Altmann
New That's not so bad
Saves stringing the types.
On the other hand, I was going to create a 2nd level table to consolidate the the duplicate behaviours.
But then again, I'm probably going to throw this away and rewrite it in C# in a couple of days anyway.
     Setting up hash table with addresses in VB.net - (broomberg) - (5)
         Never mind - (broomberg) - (4)
             TypeOf/GetType/GetType - (altmann) - (3)
                 Here is what I did - (broomberg) - (2)
                     Re: Here is what I did - (altmann) - (1)
                         That's not so bad - (broomberg)

I'd like to thank the Academy...
41 ms