Dear,

By the usage of function ReadType we discover that the
result of this version isn't compatible with kixtart 3.63.

Our script notepad.kix tries to do this:

code:

$result=ReadValue($ikey, $ikey_ex)
WriteValue($ikey, $ikey_ex, "QuickView with Notepad", $result)


creates an error and script will be aborted when the $result value
(= a type) is an empty string.

ReadType 3.63 returns REG_SZ.
ReadType 4.00 beta 1 returns an empty string.

Workaround can be

code:

$result=ReadValue($ikey, $ikey_ex)
IF (@error <> 0) OR (len($result) = 0)
$result="REG_SZ" ; - choose another value when needed -
ENDIF
WriteValue($ikey, $ikey_ex, "QuickView with Notepad", $result)


Workaround for
code:

WriteValue($ikey, $ikey_ex, "QuickView with Notepad", ReadType($ikey, $ikey_ex))


is the samen.

Another interesting change between both version is the result of the
macro's @error and @serror

4.00 @error returns: 0
3.63 @error returns: empty string

4.00 @serror returns: (null) [0/0]
3.63 @serror returns: empty string

Advise: check your script for function ReadType

Greetings.

[This message has been edited by MCA (edited 03 April 2001).]

_________________________
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