home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Cobol 24 Hours
/
Sams_Cobol_24_Hours.iso
/
Cobol32
/
PowerCBL
/
powercbl.Z
/
video.prc
< prev
next >
Wrap
Text File
|
1997-03-09
|
1KB
|
42 lines
@POWER POWSHEET SHEET1 *
@POWER POWEDIT EDIT1 CHANGE
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
IF POW-TEXT OF EDIT1 = ALL SPACE
THEN
MOVE POW-OFF TO POW-ENABLE OF PUSH2
ELSE
MOVE POW-ON TO POW-ENABLE OF PUSH2
END-IF
@POWER POWPSBTN PUSH1 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 AVI-FILENAME PIC X(128).
PROCEDURE DIVISION.
* Display the AVI file name of the video being played.
CALL GETFILENAME OF SHEET1
USING AVI-FILENAME
"File reference"
"AVI file(*.AVI)|*.AVI"
POW-CDOPEN.
IF return-code >= ZERO
THEN
MOVE AVI-FILENAME TO POW-TEXT OF EDIT1
END-IF
@POWER POWPSBTN PUSH2 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
* Open the AVI VIDEO device and play the video clip.
MOVE POW-TEXT OF EDIT1 TO POW-MCIELEMENT OF MCI1.
CALL OPENDEVICE OF MCI1.
CALL PLAYDEVICE OF MCI1.
@POWER POWPSBTN PUSH3 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
* Close the sample application.
CALL CLOSESHEET OF SHEET1