GETMODE Example


Example:

 

STATE3D

INTEGER

1

.

 

 

  

GETMODE

*3D=STATE3D

.

 

 

  

IF

(STATE3D = 0)

  

DISPLAY

"3D state disabled."

  

ELSE IF

(STATE3D = 1)

  

DISPLAY

"3D state enabled."

  

ELSE IF

(STATE3D = 99)

  

DISPLAY

"PLBCON interpreter."

  

ENDIF

 

 

This example retrieves the current 3D state and decodes the result for display.

 

 



PL/B Language Reference GETITEM Examples GETPROP Examples