Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Variable Name 1

Status
Not open for further replies.

jvande

MIS
Jun 6, 2001
115
US
I have a function to read in several values from a record
F1,F2,F3

Record_set = ORS
Count =3
Function Read_Database(ByVal Record_Set, ByVal Count)
I=1
do until I>Count
F&I=Record_Set("F"&I&"")
I=I+1
loop
End Function

I would like my resulte to be F1= F1 value from database, F2 = F2 value from database and so on. I can't seem to get the variable F&I to work. How do I get that syntex correct?

Thanks,
Josh
 
Check these:
[thread333-259851], [Thread333-176827]... This is not a bug - it's an undocumented feature...
;-)
 
Nice, I wasn't aware of the execute command, star for bringing up something completely new to me :)
Whats funny is how many sites I remember tellling me that this wasn't possible a year or two again when I searched, must have been because I was basing the search on eval and evaluate.

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
FAQ FAQ20-2863
= new Forums.Posting.General.GettingAnswers()
 
Thx m8 This is not a bug - it's an undocumented feature...
;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top