Hex()

Convert number to a hexadecimal string. Takes the data type into account.

PreprocessorThe function is also available in the Preprocessor, creates constants only, e.g. does not generate machine code.

Syntax: String = Hex( Expression )

Example:

  dim s as string
  s = Hex(41394)  ' output: "A1B2"