Implementation of SUBSTR() command

From ArcoWiki
Revision as of 20:27, 10 September 2016 by Admin (talk | contribs) (Created page with ": this is a standard DMIS 5.2 command able to extract a substring from a string.<br /> The command is:<br /> SUBSTR(str,x var_8) <br /> Where: str: is the string to be...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
this is a standard DMIS 5.2 command able to extract a substring from a string.

The command is:

SUBSTR(str,x var_8) 


Where:

str: is the string to be tested
x: is the position where to start
y: is the position where to stop (this is an optional parameter, if missing the string is extracted to the end)

An example of use is:

DECL/CHAR,100,str1,str2
str1=ASSIGN/'My full String'
$$reading the string from char #4 to char #7
str2=ASSIGN/SUBSTR(str1,4,7)