Difference between revisions of "Implementation of SUBSTR() command"

From ArcoWiki
Jump to: navigation, search
(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...")
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
: this is a standard [[DMIS]] 5.2 command able to extract a substring from a string.<br />
+
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 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)<br />
 
 
An example of use is:<br />
 
  
DECL/CHAR,100,str1,str2
+
See [[Reading a Substring from a variable]] for the use of this capability.
str1=[[Assign|ASSIGN]]/'My full String'
 
$$reading the string from char #4 to char #7
 
str2=[[Assign|ASSIGN]]/SUBSTR(str1,4,7)
 
  
 +
[[it:Implementazione del comando SUBSTR ()]]
 +
[[zh-cn:执行SUBSTR()命令]]
 +
[[pt:Implementação do comando SUBSTR ()]]
 +
[[de:Implementierung des Befehls SUBSTR ()]]
 +
[[es:Implementación del comando SUBSTR ()]]
 +
[[en:Implementation of SUBSTR() command]]
 +
 +
[[Category:Dmis_Tutorial]]
 
[[Category:ReadMe3.4.155]]
 
[[Category:ReadMe3.4.155]]

Latest revision as of 09:45, 7 June 2018

This is a standard DMIS 5.2 command able to extract a substring from a string.

See Reading a Substring from a variable for the use of this capability.