GETFOCUS


8.1, PLBCMP GUI Only

 

The GETFOCUS instruction retrieves the identification number of the object that currently has focus. The instruction uses the following format:

 

 

[label]

GETFOCUS

{objectid}

 

Where:

label

Optional. A Program Execution Label.

objectid

Required. A Numeric Variable that receives the identification number of the object that has the focus.

Flags Affected: OVER, ZERO

Note the following:

  1. The value returned is the object's identification number.

  2. If no object currently has the focus, a value of zero (0) is returned and the ZERO flag is set.

  3. The OVER flag is set if the destination variable is not large enough to receive the value.

 

 

See Also: Example Code, SETFOCUS, Object Instructions

 



PL/B Language Reference FORMLOAD GETITEM