Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read and Write Windows Registry Key with BINARY value
Message
From
05/01/2003 22:43:29
 
 
To
05/01/2003 22:37:59
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00738280
Message ID:
00738284
Views:
20
Will This help
FUNCTION dec2bin		&& converts decimal number to binary number

	PARAMETERS nvalue
	**********************************************************************
	*PROC/FUNC--> DEC2BIN - converts decimal number to binary number
	*---------------------------------------------------------------------
	local  cbinstr, nrest

	cbinstr = ""
	DO WHILE .T.
		nrest = MOD(nvalue,2)
		nvalue = INT(nvalue/2)
		cbinstr = STR(nrest,1) + cbinstr
		IF nvalue = 0
			EXIT
		ENDIF
	ENDDO
	RETURN cbinstr
	**********************************************************************
	*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄ* End Of Func / Proc DEC2BIN *ÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*
>Hi All,
>
>Some one please help me. My app need read and write some key value to window's registry with binary value. How can I do that? (I have make good with other valye's type: DWORD, STRING).
>
>Thanks in advance.
Previous
Reply
Map
View

Click here to load this message in the networking platform