Up

_winreg_getvalue Scol 4.6 or above required

Get a value to a key.

Prototype :

fun [S S] [I S]

Return : [I S] a tuple if success or nil if error. The tuple content the value (integer in the first element, string in the second. So if the value is a string mode, the first element is NIL. If the value is a integer mode, the second element is NIL.

See also :

Example :

fun main ()=
	_showconsole;
	let _winreg_getvalue "your_company\\your_app\\Infos" "INT" -> [ivalue _] in
	// do something
	let _winreg_getvalue  "your_company\\your_app\\Infos" "STR" -> [_ svalue] in
	// do something
	0;;

Note

Warning : this function is defined on MS Windows Scol version only !