
Dim a Variable from a string???Possible??
You can "kind of" do this using a collection. Try the following code:
Dim c As New Collection
Call c.Add(rs!value,rs!name) 'don't try to put a duplicate
in, though!
Afterwards, to get the value out, you would have to do this:
Debug.Print c.Item(rs!name)
This is the closest I can think of...
-Rob Hajicek
SevenStar Technologies
______________________________________________________________________
SEVENSTAR TECHNOLOGIES * PO Box 937 * St. Louis, MO 63011-0937
**** OBJECT BRIEFCASE for VB 6.0 and VB 5.0 is now available!
**** A PROFESSIONAL control and code library add-in!
**** Create your own code wizards! Add error handling to your code!
**** Free trial version at: http://www.SevenStarTech.com/download.htm
______________________________________________________________________
Quote:
> i want to read my variable names from a file or database.
> is it possible to do sth like:
> dim rs!name as string [len(rs!name)]
> where rs!name is for example "Adress" ?
> I know there's a way, but I forgot how.....