Dear,

Can you run following script and put the result on the board. It is verified for
kixtart 2001 RC 3 release.

code:

?
? "-KeyExist verify-"
?
$ikey="HKEY_CURRENT_USER\Software"
? "(1=exist/0=not exist) "+KeyExist($ikey+"\MCA")

IF (AddKey($ikey+"\MCA") <> 0)
? "AddKey @error (@serror)"
ELSE
? "AddKey completed."
ENDIF
? "(1=exist/0=not exist) "+KeyExist($ikey+"\MCA")

IF (DelKey($ikey+"\MCA") <> 0)
? "DelKey @error (@serror)"
ELSE
? "DelKey completed."
ENDIF
? "(1=exist/0=not exist) "+KeyExist($ikey+"\MCA")
?
? "-ExistKey verify-"
?
? "(0=exist/1=not exist) "+ExistKey($ikey+"\MCA")

IF (AddKey($ikey+"\MCA") <> 0)
? "AddKey @error (@serror)"
ELSE
? "AddKey completed."
ENDIF
? "(0=exist/1=not exist) "+ExistKey($ikey+"\MCA")

IF (DelKey($ikey+"\MCA") <> 0)
? "DelKey @error (@serror)"
ELSE
? "DelKey completed."
ENDIF
? "(0=exist/1=not exist) "+ExistKey($ikey+"\MCA")



The output was:
code:

-KeyExist verify-

(1=exist/0=not exist) 0
AddKey completed.
(1=exist/0=not exist) 1
DelKey completed.
(1=exist/0=not exist) 0

-ExistKey verify-

(0=exist/1=not exist) 2
AddKey completed.
(0=exist/1=not exist) 0
DelKey completed.
(0=exist/1=not exist) 2


greetings.


btw: the result of 2 for ExistKey is not conform documentation. be aware of that.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA