Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About parameters..
Message
From
29/11/2000 02:06:06
 
 
To
29/11/2000 01:56:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00446589
Message ID:
00446593
Views:
16
>Hi all,
>
>i would like to know if a hv a visual foxpro program. And i want to pass a parameters into the program by start to run the execute file each time.
>such as : " aa.exe 123 456'
>the value 123 and 456 are the parameters that will pass into the program. So how can i get this parameter by coding?

You can put a LPARAMETERS or PARAMETERS command as the first line of the "main" program of your .EXE:
LPARAMETERS ;
  tcFirstParameter, ;
  tcSecondParameter, ;
  ...
Note that all such parameters come across as type Character, and you may have to convert to the variable type you want/need.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform