Convert.ByteStringToString(Bytes)

Converts a byte string into a character string.

Applies To

Properties and Methods

None

Available

The .ByteStringToString(Bytes) method is available in:

  • 15.03.016
  • All newer builds

Type

String

Syntax

Convert.ByteStringToString(Bytes);

Parameters

Parameter Required Description
Bytes Yes

A string of bytes represented by decimal numbers (0 - 255) separated by spaces.

Bytes represented by Hexadecimal or binary numbers separated by spaces will result in a scripting error.

Example

var lcBin = '72 101 108 108 111 32 87 111 114 108 100 33';

var lcStr = Convert.ByteStringToString(lcBin);

Event.Form.MessageBox(lcStr);

 

/* Expected System Prompt Display:

Hello World!

*/