String Operations

Standard Operators

These are the standard operators and functions that manage character strings:

Functions and Operators

Operator / FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances.

Addition +

Concatenation of strings.

ArrayToString / ArrayToStringU

Copies elements of an SINT array to a STRING.

ascii

Get the ASCII code of a character within a string.

ATOH

Converts string to integer using hexadecimal basis.

char

Build a single character string.

concat

Concatenation of strings.

CRC16

CRC16 calculation.

delete

Delete characters in a string.

FIND

Find characters in a string.

HTOA

Converts integer to string using hexadecimal basis.

INSERT

Insert characters in a string.

LEFT

Extract a part of a string on the left.

MID

Extract a part of a string.

MLEN

Get string length.

REPLACE

Replace characters in a string.

RIGHT

Extract a part of a string on the right.

StringToArray / StringToArrayU

Copies characters of a STRING to an SINT array.

Manage String Tables

These functions are for managing string tables as resources:

Function Description

LoadString

Load a string from the active string table.

StringTable

Select the active string table resource.