Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get all the settings in IDE vs. run-time?
Message
 
 
To
01/02/2017 12:22:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01647262
Message ID:
01647265
Views:
50
>Going just a step further from the Help file (but I'll be really embarrassed if there is a simpler solution...):
>
>
>LOCAL regfile, oReg
>LOCAL ARRAY aFoxOptions[1,2]
>LOCAL Option
>
>m.regfile = HOME(2)+"classes\registry.prg"
>SET PROCEDURE TO (m.regfile) ADDITIVE
>m.oReg = CreateObject("FoxReg")
>m.nErrNum = m.oReg.EnumFoxOptions(@m.aFoxOptions) 
>
>SET ALTERNATE TO "Settings.txt"
>SET ALTERNATE ON
>
>FOR m.Option = 1 TO ALEN(m.aFoxOptions, 1)
>	? m.aFoxOptions[m.Option, 1],"=",m.aFoxOptions[m.Option, 2]
>ENDFOR
>
>SET ALTERNATE OFF
>SET ALTERNATE TO
>
>MODIFY FILE Settings.txt
>
Thanks a lot, I emailed that solution.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform