Information générale
Catégorie:
Codage, syntaxe et commandes
Worked great. Thanks!
********************
>Want to have the ability to turn on and off a feature. What is an easy way to have a 1 char code read into my MAIN to use int an IF statement. I have a config.fpw, could i use that?
>
>Thanks
>
>Brenda
Sure you can add your own Items to config.fpw because foxpro will ignore any lines with unknown keywords.
For example,
Myflag=YES
I included a function that I wrote awhile ago that lets you get value for specified Item.
lcVal = GetCfgItem("Myflag") will return 'YES' if you have Myflag=YES in config.fpw
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement