MenuAddCheckedEntry Function

Help Contents

Introduction

Adds a command to the current drop-down menu definition.

Syntax

Informal Syntax:

MenuAddCheckedEntry( Label, Id )

Formal Syntax:

MenuAddCheckedEntry( Label:=Expression, Id:=Expression )

Parameters

ParameterTypeDescription
Text ANY_STRING The text of the menu entry.
Checked BOOL Whether the menu entry is checked (TRUE), or not checked (FALSE).
Id UDINT The command value associated with the menu entry.

Return Value

None.

Remarks

The function MenuAddCheckedEntry() adds a text entry with a check mark to the current drop-down menu definition.

If the operator, selects this menu entry, the Id parameter will be returned from the MenuOpen Function.

Make sure each entry in the drop-down menu definition has different Id parameter values.

The maximum number of menu entries in 50.

Examples

In the following example, the menu entry "Running:" with a check mark is added to the current drop-down menu definition:

MenuAddCheckedEntry( "Running", 1 );

For a more detailed example on how to use the menu functions see the MenuOpen() Function.

Further Information

MenuAddEntry() function

To add a menu entry without a check mark to the current drop-down menu definition.

MenuAddSeparator() function

To add a separator to the current drop-down menu definition.

MenuAddSubMenu() function

To add a submenu to the current drop-down menu definition.

Operator Actions

To learn where you can use this function.

Glossary

For the meaning of terms used in Fernhill SCADA.