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:
00490749
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform