Download Print this page

Omron NS Reference Manual page 49

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
SETFOCUS
Applicable versions
Format
Function
Return Value
Example
Sets the input focus set for the object
System version 5 or higher
SETFOCUS(n);
Set the input focus on the specified numeral display & input object or string display
& input object.
n: Object ID number which the input focus should be set.
(0 to 32767)
When setting the input focus for the object specified as top in the Input Order
List, set "-1".
This macro will NOT work if the input focus has already been set for other
-
object.
-
The input focus will NOT be set if the specified object is created in the
frame page which is not displayed as top. (A dialog which indicates macro
execution error will be displayed when executing this macro.)
-
If an object other than numeral display & input object and string display &
input is specified, this macro will NOT work.
The input focus cannot be set for the objects created in the sheet.
-
SETFOCUS macro will NOT work in the following execution timing.
-When Loading a Project
-When Loading a Screen
-When Unloading a Screen
-Before inputting Numeral set using numeral display & input objects
-Before Writing Numeral set using numeral display & input objects
-Before inputting String set using string display & input objects
-Before Writing String set using string display & input objects
0: Completed normally
-1: The specified object ID could not be found.
Case that the input focus is set for object with ID number 4.
SETFOCUS(4);
29

Advertisement

loading

This manual is also suitable for:

Ns-series