contents.gifprev1.gifnext1.gif

SET(GLOBAL_SELECT)

Description:

Returns 1 if the request for global selection ownership is granted. The second parameter is always SCREEN. The third parameter is PRIMARY, SECONDARY, or a case-sensitive global selection name. This built-in is only used in a windowed environment.

Syntax:

integer := SET(GLOBAL_SELECT, SCREEN, {PRIMARY | SECONDARY | selection_name} )

Example:

The following requests ownership of the primary global selection. If granted, a message is displayed.

IF 1 = SET(GLOBAL_SELECT, SCREEN, PRIMARY);

THEN

MESSAGE ("Hot Dang We Got It");

ELSE

MESSAGE ("Yoiks, Smedly. Foiled Again.");

ENDIF;

Related Builtins:

GET_INFO (SCREEN, "global_select")