Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About parameters..
Message
De
29/11/2000 02:06:06
 
 
À
29/11/2000 01:56:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00446589
Message ID:
00446593
Vues:
8
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform