Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there another configuration file besides Foxuser.dbf
Message
From
22/03/2016 07:30:50
 
 
To
21/03/2016 21:22:17
W. Gerry Lamb
Newkirk Products, Inc
Vermont, United States
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
01633466
Message ID:
01633487
Views:
50
You can have the same result with native vfp class registry.vcx
#DEFINE ERROR_SUCCESS 0 
#DEFINE C_EXTNOFOUND_LOC "No information available for selected application."
#DEFINE C_NOREGFILE_LOC "The REGISTRY.PRG file needed for this sample could not be found in \Samples\Classes."

LOCAL oReg,regfile
LOCAL cOptionValue,cOptionName,nErrNum
PUBLIC aFoxOptions

regfile = HOME(2)+"classes\registry.prg"
IF !FILE(m.regfile)
	regfile = HOME()+"samples\classes\registry.prg"
	IF !FILE(m.regfile)
		MESSAGEBOX(C_NOREGFILE_LOC)
		RETURN
	ENDIF
ENDIF

SET PROCEDURE TO (m.regfile) ADDITIVE
oReg = CreateObject("FoxReg")
DIMENSION aFoxOptions[1,2]
m.nErrNum = oReg.EnumFoxOptions(@aFoxOptions)  
create cursor ycurs (Option c(40),Value c(100))
appe from array aFoxOptions
brow
RELEASE PROC (m.regfile)
the cursor have 193 vfp options set in registry.
this code is adapted from original vfp samples solution form: home(1)+"samples\solution\winapi\regfox.scx"
Previous
Reply
Map
View

Click here to load this message in the networking platform