home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Cobol 24 Hours
/
Sams_Cobol_24_Hours.iso
/
Cobol32
/
PowerCBL
/
powercbl.Z
/
listbox.prc
< prev
next >
Wrap
Text File
|
1997-03-12
|
1KB
|
39 lines
@POWER POWSHEET SHEET1 *
@POWER POWLIST LIST1 SELCHANGE
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 SEL-DATA PIC X(64).
PROCEDURE DIVISION.
* Selected character string is taken out.
MOVE POW-SELSTRING OF LIST1 TO SEL-DATA.
* Above-mentioned is displayed.
MOVE SEL-DATA TO POW-TEXT OF LABEL1.
@POWER POWPSBTN PUSH10 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 ADD-DATA.
02 PIC X(5) VALUE "DATA-".
02 ADD-COUNT PIC 999 VALUE ZERO.
PROCEDURE DIVISION.
* Data is created and added to the listbox (LIST1).
ADD 1 TO ADD-COUNT.
CALL ADDSTRING OF LIST1 USING ADD-DATA.
@POWER POWPSBTN PUSH11 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 SEL-NO PIC S9(4) COMP-5.
PROCEDURE DIVISION.
* The data item, when selected in the listbox (LIST1), is deleted.
MOVE POW-SELECT OF LIST1 TO SEL-NO.
CALL DELETESTRING OF LIST1 USING SEL-NO.
@POWER POWPSBTN PUSH12 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
* Close the sample application.
CALL CLOSESHEET OF SHEET1.