Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Want a 1 char code read into my app
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00490001
Message ID:
00490177
Views:
11
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform