home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Cobol 24 Hours
/
Sams_Cobol_24_Hours.iso
/
Cobol32
/
PowerCBL
/
powercbl.Z
/
edit.prc
< prev
next >
Wrap
Text File
|
1997-03-14
|
1KB
|
39 lines
@POWER POWSHEET SHEET1 *
@POWER POWEDIT EDIT2 CHANGE
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 TEXT-WORK PIC X(4096).
PROCEDURE DIVISION.
* The input character string is taken
* out of the multi-line character string input area (EDIT2)
* and displayed in the display area (LABEL1).
MOVE POW-MULTITEXT OF EDIT2 TO TEXT-WORK.
MOVE TEXT-WORK TO POW-TEXT OF LABEL1.
* This procedure is called every time a character is input or changed.
@POWER POWEDIT EDIT1 CHANGE
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 TEXT-WORK PIC X(256).
PROCEDURE DIVISION.
* The input character string is taken
* out of the single line character string input area (EDIT1)
* and displayed in the display area (LABEL1).
MOVE POW-TEXT OF EDIT1 TO TEXT-WORK.
MOVE TEXT-WORK TO POW-TEXT OF LABEL1.
* This procedure is called every time a character is input or changed.
@POWER POWPSBTN PUSH10 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
* Close the sample application.
CALL CLOSESHEET OF SHEET1.
@POWER POWPSBTN PUSH11 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
* Clear all fields.
MOVE SPACE TO POW-TEXT OF EDIT1.
MOVE SPACE TO POW-MULTITEXT OF EDIT2.