Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get all the settings in IDE vs. run-time?
Message
 
 
À
01/02/2017 12:22:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01647262
Message ID:
01647265
Vues:
51
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform