Convert Int64 to Hex
......................................................................................................................
This Page contains Sourcecode developed by me and for you to use freely.
It would be nice to get an email telling me that you are using this code.
All code is free to use as they are, with no warranties.
The DoInt64 Custom Object for Hotbasic is a way to convert a Int64 number to Hex and back
What can this be used for?
* When Storing Dates in your application
* Creating Uniqe Keys for entries in your application, The key is unique as long as not two users creates a entry the same milli second
This command is included in the Custom Command collection but it's called HEXINT64


DoInt64
......................................................................................................................
To use the Custom object Include the Doint64.inc file and create a object
$apptype console
$include "DoInt64.inc"
dim di as DoInt64
dim d as date
dim i as int64
dim hexstr as string
d.update
d.saveint64 i
di.LoadInt64(@i) ' Send the pointer to the routine
hexstr=di.SaveHex
print hexstr
pause