home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Cobol 24 Hours
/
Sams_Cobol_24_Hours.iso
/
Cobol32
/
PowerCBL
/
powercbl.Z
/
check.prc
< prev
next >
Wrap
Text File
|
1997-03-09
|
1KB
|
40 lines
@POWER POWSHEET SHEET1 *
@POWER POWCKBTN CHECK1 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
* Determine the status of the check button
* and display the appropriate status message.
IF POW-CHECK OF CHECK1 = POW-ON
MOVE "ON" TO POW-TEXT OF LABEL1
ELSE
MOVE "OFF" TO POW-TEXT OF LABEL1.
@POWER POWCKBTN CHECK2 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
* Determine the status of the check button
* and display the appropriate status message.
IF POW-CHECK OF CHECK2 = POW-ON
MOVE "ON" TO POW-TEXT OF LABEL2
ELSE
MOVE "OFF" TO POW-TEXT OF LABEL2.
@POWER POWCKBTN CHECK3 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
* Determine the status of the check button
* and display the appropriate message
IF POW-CHECK OF CHECK3 = POW-ON
MOVE "ON" TO POW-TEXT OF LABEL3
ELSE
MOVE "OFF" TO POW-TEXT OF LABEL3.
@POWER POWPSBTN PUSH10 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
*> End of Check Button sample.
CALL CLOSESHEET OF SHEET1.