Siemens A31003-51730-U103-7619 用户手册

下载
页码 336
The Elements of a DCO-Script
For internal use only
07/2010
5-58
OScAR-Pro Customized Operator, User Manual
  
  
  
BHB_DCO_05.fm
Controls
5.9.2
References to Controls
Just like Constants, Parameters, and Variables, the Controls:
Edit field,
Checkbox,
Listbox, and
Combobox
use an attribute to assign them to a data type (see Section 5.2, "The DCO data types and their 
value ranges").
For each Edit field, Listbox and Combobox the type is assigned individually, while check-boxes 
always have the data type bool.
This makes it possible to add references to these Controls for Instructions (see Section 5.11, 
"Instructions") and arguments (see
 Section 5.10.2, "Setup and syntax of conditions") and to 
read out their contents.
To do so, use the name of the Control and add a new declaration before the name.
For each Control use the corresponding declaration as described below:
Control
Declaration and description
Edit field
(EDIT) <Name of the Edit field >
e.g. for an Edit field with the name "TelNumber":
(EDIT)TelNumber
A reference to an Edit field always outputs as result the content 
of the pertinent Edit field.
Checkbox
(CHECKBOX) <Name of the Checkbox>
e.g for a Checkbox with the name "Huntgroup“: 
(CHECKBOX)Huntgroup
A reference to a Checkbox always outputs as result the status 
of the pertinent Checkbox.
Listbox
(LISTBOX) <Name of the Listbox>
e.g. for a Listbox with the name "Broadcasts":
(LISTBOX)Broadcasts
A reference to a Listbox always outputs as result the entries 
that were chosen for that Listbox.
Combobox
(COMBOBOX) <Name of the Combobox>
e.g. for a Combobox with the name "Announcements":
(COMBOBOX)Announcements
A reference to a Combobox always outputs as result the entry 
that was chosen for that Combobox.
Table 5-47
Reference declarations for Controls