changequote({,}) define({_TITLE_},{Varkon MBS Programmers manual}) define({_SUBTITLE_},{- substr - Function}) define({_INDEXLINK_},{index}) define({_STYLE_},{../varkonstyle.css}) include(../../include/header.inc)
Creates a new (sub-) string by copying one or more characters from an existing string.
s2:={substr}(s1, start, count);
string s2;
string s1;
int start;
int count;
| s1 | - The original string. |
| start | - Position of first character to copy, 1<= start <=132. |
| count | - Number of characters to copy, default is the rest of the string. |
A STRING value equal to the new string.
s2:={substr}("ABCDE",2,3); ! Equal to s2:="BCD";
s2:={substr}("ABCDE",4,1); ! Equal to s2:="D";
s2:={substr}("ABCDE",3); ! Equal to s2:="CDE";
s2:={substr}("ABCDE",1); ! Equal to s2:="ABCDE";
include(../../include/svnversion.inc)
include(../../include/footer.inc)