hi,
Bad news: you have to write the code for it! Here is a small handler that
works for integers >= 0 and <= the maxinteger:
on IntegerToHex theint
lMaxPower = 7
lHexValue = ""
lRest = theInt
repeat with i = lMaxPower down to 0
lTime = lRest/integer(power(16,i))
if (lTime > 0) or (lHexValue <> "") then
if (lTime > 9) then
lHexValue = lHexValue & numtochar(chartonum("A") + lTime - 10)
else
lHexValue = lHexValue & string(lTime)
end if
lRest = lRest - lTime*integer(power(16,i))
end if
end repeat
if lHexValue = "" then lHexValue = "0"
return lHexValue
end
regards,
------------------------------------------
Laurent BRIGAUT
Services Division Manager
Integration Nouveaux Media, Inc.
http://www.integration.qc.ca
------------------------------------------
> -----Original Message-----
> From: ICG [mailto:[EMAIL PROTECTED]]
> Sent: 16 janvier, 2001 04:34
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> Converting String to Hex code
>
>
> How to convert a string to a Hex code or to Unicode. Is there
> an analogue of
> JavaScript escape() function in Lingo?
>
> Araik
>
>
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
> email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo. Thanks!]
>
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]