22.11.9.8 String Length

Obtains the length of the stored string. Stores the length of Parameter 2 (Text) in Parameter 1 (Text Length Write-To Address). (The NULL character is not included.)

_strlen (Destination address, String)

Example expression 1:

_strlen ([w:[#INTERNAL]LS0100], "ABCD")

When the above statement is executed, the length of the string is written into LS0100 as illustrated below.

Example expression 2:

_strlen ([t:0000], databuf0)

The content of "databuf0" is as follows:

When the above statement is executed, the length of the string is written into [t:0000] as illustrated below.