StrLen
(Engine-Level Function)
Description: | Returns the length of a text string |
Returns: | Numeric |
Usage: | Script or Steady State |
Function Groups: | String and Buffer |
Related to: | CharCount | Concat | Replace | SubStr |
Format: | StrLen(String) |
Parameters: |
String |
Required. Any text expression. |
Comments: | This function does not return the number of characters in String, but rather, the number of bytes, including 0 (NULL) bytes. May be done on a stream value, but if the stream is longer than the maximum signed integer (2^31) characters, the return value will be 2^31. |
Example:
v = StrLen("ABCDEF"); w = StrLen("ABC_DEF"); x = StrLen("ABC DEF");
The values of v, w and x are 6, 7 and 7 respectively.