Ok...I've written a rather extensive script, but I kept erroring at one "simple" spot, so I reduced that section to a second program, and am STILL getting an error

The code is:

code:

$version = Readvalue("HKEY_LOCAL_MACHINE\SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion","ProductVersion")
rtrim(ltrim($version))
$jasper = DecToHex ($version)
messagebox ("$jasper","test",0)

and the error is:
55706351Script error : error in
$jasper = DecToHex ($version)

where the 55706351 is the decimal value of $version, though I need it in HEX...Anyone got anythoughts?

ps. I'm using Kixtart 95 v3.63

[ 12 September 2001: Message edited by: Skorpyo ]