Summary
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.)
Format
_strlen (Destination address, String)
Parameter 1: Internal Device, Temporary address
Parameter 2: String, Data Buffer
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.