Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

HexToStr

  • Last UpdatedJul 18, 2023
  • 1 minute read

Converts a number into a hexadecimal string. The string is the width specified (padded with zeros).

Syntax

HexToStr(Number, Width)

Number:

The number to convert.

Width:

The width of the string (0 to 8).

Note: The function does not truncate the result if it is longer than the value specified.

Return Value

A string containing the converted number.

StrToHex, IntToStr

Example

Variable=HexToStr(123, 4);

! Sets Variable to "007b".

Variable = HexToStr(0x12ABFE, 8);

! Sets Variable to "0012abfe"

See Also

String Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in