General information
Category:
Coding, syntax & commands
>Theres a key in the registry that shows the Windows directory on your computer. Say, if I chose to rename \WINDOWS as my WINDOWS directory to \WIN95, it would show "\WIN95". How would I do that in VFP6?
Hi Charles,
#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 cExtn,cAppKey,cAppName,nErrNum,cNewKey
Local oReg,regfile
cAppKey = ""
cAppName = ""
regfile = HOME(2)+"classes\registry.prg"
If !FILE(m.regfile)
Messagebox(C_NOREGFILE_LOC)
Return
Endif
oReg = NewObject("FileReg",m.regfile)
* ex. THIS.SetRegKey("ResWidth","640",;
* "Software\Microsoft\VisualFoxPro\4.0\Options",;
* HKEY_CURRENT_USER)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only