Previous Topic: DISABLE Statement for a Push ButtonNext Topic: REFRESH Statement


MARK and UNMARK Statements

A MARK statement immediately causes menu items that reference the command to display a check mark.

An UNMARK statement causes the check mark to be removed.

Only menu items placed on the windows/dialog boxes of the current procedure are affected by MARK and UNMARK statements. Push buttons that use the same commands are not affected.

MARK and UNMARK can be used to show what options have been specified for a window or dialog box. You can see this in the CA Gen Options drop-down menu where single or multiple adds for an object can be specified. You can also use these statements in any application that adds occurrences of entity types.

The next sample code shows examples of the use of these statements.

 --- EVENT ACTION collections_mi_single_add_click
|        SET local_add_option ief_supplied command TO COMMAND
|     --- IF COMMAND IS EQUAL TO singel
|    |    MARK COMMAND multiple
|    |--- ELSE
|    |    MAKE COMMAND multiple
|     --- UNMARK COMMAND single
 ---