GETITEM Examples


Example 1:

 

RADIO2

RADIO

 

RADION

FORM

1

RADIOC

DIM

20

  

...

 

  

GETITEM

RADIO2,3,RADION

  

GETITEM

RADIO2,3,RADIOC

 

The first GETITEM instruction returns the current state of the third radio button of the radio button group. The returned value is zero for off or a one for on. The second GETITEM instruction returns the text associated with the third radio button.

 

Example 2:

 

MENU2

MENU

 

MENU2D

DIM

50

  

...

 

  

GETITEM

MENU2,1,MENU2D

 

This GETITEM instruction returns the text for the first menu item in the MENU2D variable.

 

 



PL/B Language Reference GETFNAME Examples GETMODE Example