Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Want a 1 char code read into my app
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00490001
Message ID:
00490177
Vues:
10
Hi, Brenda,
Sergey's method for reading code in the config file is interesting (and useful) but you'll still have to make sure the users know which config file to use. Most likely they'll have to have several shortcuts, since few users these days are willing to type in a long RUN command.

Why not just use parameters
MyMain.EXE  Parm1, Parm2, Parm3....
and have a PARAMETERS statement in the first line of your main PRG? I do that for several apps. In one, if they pass a certain parameter it gives them admin writes and a login screen. Standard users never need to login. In another (again without login for everyday users) parameters allow the maintenance menu to show or allow specific users to export files.

HTH
Barbara


>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
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform