|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
cast sortedlist value as hashtablei have a sortedlist.
its values are hashtables. i need to access one of these hashtables: using option strict without a cast, i got a late binding error : mysortedlist("key") when i try to cast it: directcast(mysortedlist("key"), "hashtable") or ctype(mysortedlist("key"),"hashtable") i get an error "type expected" what is the correct way to perform the case? can anyone help? thanks in advance! fizzy wrote:
Show quoteHide quote > i have a sortedlist. You are almost there!> its values are hashtables. > > i need to access one of these hashtables: > > using option strict without a cast, i got a late binding error : > > mysortedlist("key") > > when i try to cast it: > > directcast(mysortedlist("key"), "hashtable") or > ctype(mysortedlist("key"),"hashtable") > > i get an error "type expected" > > what is the correct way to perform the case? can anyone help? directcast(mysortedlist("key"), HashTable) No quotes :) -- Larry Lard Replies to group please cannot believe i missed that one!! i'm so stupid - but thanks for not
saying so larry :)
Is synclock needed in DLL?
2 easy questions How to convert hex to string? Difference between Trim function and Trim member getting row index of dataset Howto: use mutliple languages C++ in VB.net translation from c# How to get form design view back? Can I pass value from VB form to VBS? sending string thru TCP/IP |
|||||||||||||||||||||||