Equinox Online Help - Language Reference - A to Z

Home

HexStr

Applies to
SyntaxHexStr (NumberExpression, CaseExpression)
Action[Function] Returns a Hexadecimal number string.
ScopeUsable anywhere.
Notes

This function returns a hexadecimal number string from NumberExpression with the letters in either upper or lower case according to the CaseExpression parameter. If CaseExpression is false, the function returns hexadecimal characters in lowercase and if it is true the string is in upper case.

CategoryConversions
See Also Asc, Card, ChoosePrinter, HexNum, Lowercase, Ord, Str, StrCase, StrDate, StrTime, Uppercase
Example

The following method places in the print window the hexadecimal equivalent of the numbers 1 to 100 in upper case.

int n

for n = 1 to 100
print HexStr(n, 1)
next