StrLen
- Last UpdatedOct 29, 2026
- 1 minute read
Determines the length of a string.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
StrLen |
String |
Synchronous |
Yes |
Supported |
Supported |
Supported (see Notes below) |
Supported |
Supported |
Syntax
StrLen(strSource)
strSource
The source string.
Return value
Returns an integer that is the number of characters in the string.
Notes
When this function is used in a project running on IoT View, it supports only single-byte Unicode characters (up to U+007F). Multi-byte Unicode characters are not supported at this time.
Examples
|
Tag Name |
Expression |
|---|---|
|
Tag |
StrLen("Studio version 7.0") // Returned value = 18 |
|
Tag |
StrLen("Technical Reference") // Returned value = 19 |