Commands and functions
P.
250 of 349
link
Mbutton
Definition
●
Function
link
(
id, text, icon, page_id, website
)
Arguments
●
Arguments
id, icon
and
page_id
of data type u08
●
Argument
text
of arbitrary data type
●
Argument
website
of data type c1400
Effect
●
The function addresses the web button that refers to a page (
link
). If there are multiple web
buttons with
id
on the web page of
page_id
, they all will be addressed.
●
Calling this function sets the icon of the web element with
id
to the symbol defined by
icon
(data type u08). Possible images are shown on page 291 and are selected by predefined
numbers (data type u08). In addition, predefined constants facilitate the choice. Their
respective allocation is listed in Table 2 (page 159).
●
The argument
text
denotes an arbitrary variable the value of which, converted to a
character string, is displayed in the variable text line of the web element.
●
Every icon has at least the states ACTIVE (==1), INACTIVE (==2), DARKRED (==0) and
BRIGHTRED (==9). One of these states can be submitted as the argument
state
. For an
overview of the possible states see Table 3 (page 159).
●
The text to be displayed can be represented in the styles GREY (==0), GREEN (==1),
BLINKRED(==2) and BLINKBLUE (==3).
●
The argument
website
(http address (incl. path and leading http://) of the destination site)
specified the new destination. The link is shortened to 479 characters due to
compatibilities restrictions.
Data type result (Return)
●
none
Definition
●
Function
mbutton
(
id, selection
)
Arguments
●
Argument
id
of data type u08. This argument must not change at the runtime of the
program.
●
Argument
selection
of data type u08
Effect
●
By operating the button of a multi button element and the given selection with index
selection
(e.g.
mbutton
or
mshifter
) with the
id
(page 265 and the following), the function
assumes a value not equal to zero for the duration of one processing pass, and zero in all
other cases.
●
For a
mbutton
element, the return value when operated is 1.
●
For a
mshifter
element, the return value when operated is 1, 2, 3 or 4 (u08) depending on
the actually operated element of the web button. The return values refer to the order of the
buttons (from left to right).
Data type result (Return)
●
Data type u08, values 0,1,2,3,4.
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]