Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Simon Arnold
  Where is Simon Arnold?
 Halifax
 United Kingdom
 Simon Arnold
 To: khouidmi habib
  Where is khouidmi habib?
 algeria
 Algeria
 khouidmi habib
 Tags
Subject: RE: registry question
Thread ID: 21762 Message ID: 21764 # Views: 26 # Ratings: 0
Version: Visual FoxPro 6 Category: General VFP Topics
Date: Tuesday, April 01, 2003 1:13:04 PM         
   


> 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.


COMPLETE THREAD

registry question Posted by jean albert @ 4/1/2003 12:54:37 PM
RE: registry question Posted by Simon Arnold @ 4/1/2003 1:13:04 PM