Download Print this page

Omron NS Reference Manual page 67

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
STRUPR(W)
Applicable versions
Format
Function
Return Value
Example
WINFIND
Finds a window title
Applicable versions
Format
Function
Return Value
Example
Converts a string to upper case
System Version 6.6 or higher
STRUPR(D, S) ・・・ASCII code
STRUPRW(D, S) ・・・Unicode
Converts a string S from lower case to upper case. Then set it to D.
None
STRCPY($W0, "abc");
STRUPR($W10, $W0); 'Set ABC to $W10 to $W11.
System Version 6.6 or higher
WINFIND(S1,S2)
Searches whether a window specified with S1 has started or not.
Set the following search conditions for each bit with S2.
The 0 bit to 3rd bit:
0:Window title that completely matches with S1.
1:Window title that matches with the number of characters of S1.
2:Window title that matches with the number of characters of S1 (Except for a
folder).
The 4th bit:
0:The search ends when a target is found.
1:Searches for all the matched windows.
Use Unicode if you use a symbol to specify a string with S1.
The number of find results (0:None, 1 or more: Found)
WINFIND("TEST",0); 'Search whether there is a window titled TEST.
47

Advertisement

loading

This manual is also suitable for:

Ns-series