
Initializing variables from a file - How?
SNIP
Quote:
> You could try using collections, which enable you to have a 'named' array
> where you recall items by name and not by position.
Francesc -
I tried it and I'm still puzzled (rompecabeza as it were). I'd like to
have something that works like the %filename function does on command lines
and in DOS batch files. What I need to be able to do is use what is stored
in a variable, rather than the variable itself, to set the value of another
variable. I know its confusing, but if I have a variable, named say,
"return_value1" that holds the string "Apex" that I read from my disk
file, and another variable named, say "return_value2" that holds the
integer 32 which I also read from my disk file, I'd like to be able to set
my program variable (Apex) to 32 using these two variables. The tricky
part is that I don't know ahead of time which program variable I can set
from the integer value I just got from the disk. That's why I can't use
your "ApexValue = MyVars("Apex")" line. I'm trying to avoid a very long
If...Elseif...Then or a long Select Case structure. I'd like to be able to
look at return_value1 to see which program variable I can set, then set it.
Gracias para su ayuda. Rick.