Page 1 of 1 1
Topic Options
#77413 - 2001-04-03 05:44 AM KIX2001-MAJOR: ReadType not backwards compatibility
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
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

Top
#77414 - 2001-04-03 05:00 PM Re: KIX2001-MAJOR: ReadType not backwards compatibility
Anonymous
Unregistered


Problem with your code?

I don't even see you using readtype. Instead I see you using readvalue= and then plugging in the result of that into the RegType when Writing the value...

Maybe you mean this:
$regtype=ReadType($ikey, $ikey_ex)
WriteValue($ikey, $ikey_ex, "QuickView with Notepad", $regtype)

-Stephen

Top
#77415 - 2001-04-03 05:30 PM Re: KIX2001-MAJOR: ReadType not backwards compatibility
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
MCA is right (per usual) !

Shawn

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

Top
#77416 - 2001-04-03 07:24 PM Re: KIX2001-MAJOR: ReadType not backwards compatibility
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Thanks Shawn, Stephen,

It was really ReadType.
Greetings.

_________________________
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

Top
#77417 - 2001-04-04 07:59 AM Re: KIX2001-MAJOR: ReadType not backwards compatibility
Anonymous
Unregistered


Thanks for reporting this issue.

There is indeed a regression in ReadType. The fix will be included in the next public build.

Kind regards,

Ruud

Top
#77418 - 2001-07-01 05:49 PM Re: KIX2001-MAJOR: ReadType not backwards compatibility
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Problem with ReadType has been fixed. Works for Kixtart 4.00 RC1
correct.
Greetings.

------------------
Site map:

_________________________
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

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1044 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.054 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.