iDevOS CALC "EVIS" Command

See if an entity is visible or hidden.

Description

CALC( y, name, "EVIS" );   // y = visible("name") = is entity name visible?

This command checks the given entity called name to see if it is visible or hidden. The value y will be set to 0 if the entity is not visible (hidden) or 1 if it is visible.

Parameters

y
Calculation result.
Parameter type: entity name of a numeric variable (eg U8, S32, FLT3 etc).
name
Entity Name.
Parameter type: immediate entity name.
"EVIS"
CALC command operator.
Parameter type: immediate string.

Examples

Example 1

VAR(vis,  0,  U8);  // Result
TEXT(txt1, "Hello", stTxt);  // Text to hide

CALC(vis, txt1, "EVIS"); // vis = 1 (visible)
HIDE(txt1);
CALC(vis, txt1, "EVIS"); // vis = 0 (hidden)
SHOW(txt1);
CALC(vis, txt1, "EVIS"); // vis = 1 (visible)