11.1.1 FromHexString Method

Creates a binary data represented by the specified hex string. A hex string is a sequence of two-digit hex numbers. Each hex number represents a byte.

For example, hex string "0AFF" represents two bytes, the first being 10 (0A) and the second 255 (FF).

Input Arguments

Name

Type

Mandatory

Description

String

String (Unicode)

Yes

The hex string that represents the binary data.

 

Output Arguments

Name

Type

Mandatory

Description

ErrorInfo

XPRIM_ErrorInfo

No

Indicates an error that might have occurred, for example if the specified hex string is not valid (containing invalid characters, not the correct length).

 

Return Value

None

Examples

Define_Com Class(#XPRIM_Binary) Name(#EncryptionKey)

 

#EncryptionKey.FromHexString String('a078f3bb')