On Apr 16, 2006, at 10:11 AM, Barrie Jones wrote:

How do I get a 2 character hex string from a low decimal value? hex (15) returns F. I would like to get 0F.
Thanks barrie

Write a function that returns what you want.

Function Hex2(value as Integer) as String
  If value < 16 then
    Return "0" + Hex(value)
  Else
    Return Hex(value)
  End if
End Function

Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to