Download Print this page

Omron NS Reference Manual page 62

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
The following macros can be used with NS-Runtime. The details of macros are described as below.
EXEC
Application Startup
Applicable versions
Format
Function
Return Value
Example
STRCAT(W)
Applicable versions
Format
Function
Return Value
Example
System Version 6.6 or higher
EXEC(S1, S2,S3)
Executes the command specified with S1 and displays at S2 window title and in S3
window style
Specify a startup file and a startup argument with S1.
(Separate a startup file and a startup argument with a space)
S2: Window title after a startup (" " displays the default title at startup)
S3: (0=normal, 1=Minimize, 2=Maximize, 3=Hide)
Use Unicode if you use symbols to specify strings with S1 and S2.
0: Completed normally
-1:Startup failed
EXEC("CMD.EXE","ABC", 2);
'Execute CMD.EXE and maximize a window titled ABC.
String Concatenation
System Version 6.6 or higher
・・・ASCII code
STRCAT(D, S)
STRCATW(D, S) ・・・Unicode
Connects the string S to the string D.
None
STRCPY($W0, "ABC"); 'Set ABC to $W0 to $W1.
STRCPY($W10, "DEF"); 'Set DEF to $W10 to $W11.
STRCAT($W0, $W10); 'Set ABCDEF to $W0 to $W3.
42

Advertisement

loading

This manual is also suitable for:

Ns-series