![background image](http://html1.mh-extra.com/html/omron/ns-runtime-software/ns-runtime-software_user-manual_744233079.webp)
4-5 Macros
4-23
STRRIGHT(W)
Extracts the specified number of characters from rightmost characters
of a string
Applicable versions
System Version 6.6 or higher
Format
STRRIGHT(D,S,n)
--- ASCII code
STRRIGHTW(D,S,n) ---
Unicode
Function
Extracts n characters from the rightmost characters of the string S. Then
sets them in D.
Return Value
None
Example
STRRIGHT ($W0,"ABCDEFG",3);
'Extract 3 characters (EFG) from the rightmost characters of the string.
Set EFG to $W0 to $W1.
STRRTRIM(W)
Deletes the rightmost spaces of a string
Applicable versions
System Version 6.6 or higher
Format
STRRTRIM(D,S) --- ASCII code
STRRTRIMW(D,S) --- Unicode
Function
Deletes the rightmost spaces of the string S to enter them to D.
Return Value
None
Example
STRRTRIM($W0, "ABC ");
'Set ABC to $W0 to $W1.
STRTRIM(W)
Deletes the spaces at both sides of a string
Applicable versions
System Version 6.6 or higher
Format
STRTRIM(D,S) --- ASCII code
STRTRIMW(D,S) --- Unicode
Function
Extracts spaces at both sides of a string specified with S. Then stores them
to D.
Return Value
None
Example
STRTRIM($W0, " ABC ");
'Set ABC in $W0 to $W1 excluding spaces at both ends.
Содержание NS-RUNTIME - SOFTWARE
Страница 1: ...NS Runtime Software USER S MANUAL Cat No V093 E1 04...
Страница 2: ......
Страница 28: ...1 4 Comparison between the NS Series and the NS Runtime 1 14...
Страница 38: ...2 6 User Interface 2 10...
Страница 56: ...3 5 Converting Projects 3 18...
Страница 84: ...4 5 Macros 4 28...
Страница 136: ...5 11 Window Size 5 52...
Страница 154: ...7 3 Error Messages and Countermeasures 7 6...
Страница 156: ......
Страница 157: ......