> hello all,
> is any way to know if key or value in the regirty exist .
iRegKey = -2147483646 && HKEY_LOCAL_MACHINE
cRegKey = "Software\MyRegKey\MyProgram"
oReg = CREATEOBJECT('Registry')
*-- Lets Get the Registry Key,
lnRegStat = oReg.OpenKey(cRegKey,iRegKey,.F.) && If you use .T. the Key Will be Created.
IF lnRegStat # 0
=MESSAGEBOX("Cannot obtain values from registry",16,"SonicRecevier")
oReg = .NULL.
RETURN
ENDIF
The Registry Class can be found in the VFP 6 FFC directory.
Simon Arnold.