Download Print this page

Omron NS Reference Manual page 70

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
WINTERM
Applicable versions
Format
Function
Return Value
Example
Exits a specified window
System Version 6.6 or higher
WINTERM(S1,S2)
Exits a window specified with S1.
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:Sends a WOM_CLOSE message to a specified window.
1: Sends a WM_DESTORY message to a specified window.
Example: Microsoft Word
When the 4th bit is 0,
Displays a message saying Do you want to save the document 1?
After confirming, Microsoft-Word ends.
When the forth bit is 1,
Exits a window without displaying a confirmation message even when there is a
change.
Use Unicode if you use a symbol to specify a string with S1.
0:Completed normally
-1:No specified window
WINTERM("TEST",0); 'Exit a window titled TEST.
50

Advertisement

loading

This manual is also suitable for:

Ns-series