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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do with a variable ??

Status
Not open for further replies.

DaBuzz

Programmer
Nov 8, 2002
40
US
This should be easy but I am missing something.

I want to issue a DO command, normally it would be Do Name.prg

But in this case I want to issue Do lcvariable where lcvariable is the name of the program to run. However, lcvariable is actually "program_name" not program_name. What is the simplest way to pass the program name through a variable so one DO command could perform unlimited number of different programs.

Thanks
 
Dave S.

Thanks it worked. I swear I tried that and it didn't work but using your guidance I tried it again and lo and behold it worked.

Thanks again.

Dave B.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top