SUBSTR†
Format†
SUBSTR( src , pos , len )
Function†
- Extracts a substring from a string.
- A negative value for the pos indicates the "Xth from the end of the string". For exmaple, the result of the following is "G".
SUBSTR("HOGE",-2,1)
Arguments†
- src
- The original string to extract from.
- pos
- The character position to start extracting from (start of string = 0)
- len
- The number of characters to be extracted
Return value†
- If successful, the extracted substring
- An empty string ("") if pos is beyond the length of the original string
- If the result of pos+len exceeds the length of the original string, a substring up to the end of the end of the string is extracted.
- In the case of an error, nothing is returned (VOID)
Related†
Version†
- YAYA: Available from the start
- Available in AYA5.8 (usage with a negative value for the second argument, pos, is not available)
Example†
- No example yet.
- Someone please provide one!