Hello,
I would like to Format the Result of the Hex function formatted to represent the type of variable that I pass to it, including high order zeros and the space between the words.
Examples:
Dim MyLong as long
MyLong = 15
The return of Hex(MyLong) is F.
I would like to see this as: 0000 000F
Dim MyInteger as Integer
MyInteger = 15
I would like to see this as: 000F
Dim MyByte as Byte
MyByte = 15
I would like to see this as: 0F
It is the Format Function that I am having trouble with.
Format(Hex(MyLong),"Whatever to get the 0000 000F")
Thanks,
Raney
I would like to Format the Result of the Hex function formatted to represent the type of variable that I pass to it, including high order zeros and the space between the words.
Examples:
Dim MyLong as long
MyLong = 15
The return of Hex(MyLong) is F.
I would like to see this as: 0000 000F
Dim MyInteger as Integer
MyInteger = 15
I would like to see this as: 000F
Dim MyByte as Byte
MyByte = 15
I would like to see this as: 0F
It is the Format Function that I am having trouble with.
Format(Hex(MyLong),"Whatever to get the 0000 000F")
Thanks,
Raney