home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Cobol 24 Hours
/
Sams_Cobol_24_Hours.iso
/
Cobol32
/
PowerCBL
/
powercbl.Z
/
setpos.prc
< prev
next >
Wrap
Text File
|
1997-03-11
|
1KB
|
42 lines
@POWER POWSHEET SET-POS WORKING
01 IMAGE-POS IS GLOBAL EXTERNAL.
02 POS-X PIC S9(4) COMP-5.
02 POS-Y PIC S9(4) COMP-5.
01 CLOSE-FLAG PIC 9 IS EXTERNAL GLOBAL.
@POWER POWSHEET SET-POS OPENED
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
MOVE POS-X TO POW-NUMERIC OF PIC1.
MOVE POS-Y TO POW-NUMERIC OF PIC2.
@POWER POWPSBTN PUSH1 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
MOVE POW-NUMERIC OF PIC1 TO POS-X.
MOVE POW-NUMERIC OF PIC2 TO POS-Y.
MOVE 1 TO CLOSE-FLAG.
CALL CLOSESHEET OF SET-POS.
@POWER POWPSBTN PUSH2 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
MOVE 0 TO CLOSE-FLAG.
CALL CLOSESHEET OF SET-POS.
@POWER POWPIC PIC1 RETURN
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
MOVE POW-NUMERIC OF PIC1 TO POS-X.
MOVE POW-NUMERIC OF PIC2 TO POS-Y.
MOVE 1 TO CLOSE-FLAG.
CALL CLOSESHEET OF SET-POS.
@POWER POWPIC PIC2 RETURN
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
MOVE POW-NUMERIC OF PIC1 TO POS-X.
MOVE POW-NUMERIC OF PIC2 TO POS-Y.
MOVE 1 TO CLOSE-FLAG.
CALL CLOSESHEET OF SET-POS.