Download Print this page

Omron NS Reference Manual page 65

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
STRMID(W)
Applicable versions
Format
Function
Return Value
Example
STRRIGHT(W)
Applicable versions
Format
Function
Return Value
Example
Extracts the specified number of characters from a specified character
position of a string
System Version 6.6 or higher
STRMID(D,S,n1,n2)
STRMIDW(D,S,n1,n2) ・・・Unicode
Extracts n2 characters from n1 of a string specified with S. Then store them in D.
(n1: The head of a string is set to 1.)
None
STRMID($W0,"ABCDEFG",2,3);
'Extracts 3 characters (BCD) from the 2nd of the string. Then store BCD in $W0 to
$W1.
Extracts the specified number of characters from rightmost
characters of a string
System Version 6.6 or higher
STRRIGHT(D,S,n)
STRRIGHTW(D,S,n) ・・・Unicode
Extracts n characters from the rightmost characters of the string S. Then sets them
in D.
None
STRRIGHT ($W0,"ABCDEFG",3);
'Extract 3 characters (EFG) from the rightmost characters of the string.
Set EFG to $W0 to $W1.
・・・ASCII code
・・・ASCII code
45

Advertisement

loading

This manual is also suitable for:

Ns-series