home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
420.lha
/
SimpleRexx
/
test.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1990-10-05
|
1KB
|
79 lines
/*
* SimpleRexx test...
*
* You need to run the SimpleRexxExample first...
*/
Options FailAt 100
Options Results
/*
* Try to read the window title bar
*/
Address EXAMPLE_1 ReadTitle
if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
else say 'Window title is 'Result
/*
* Bad WINDOW command...
*/
Address EXAMPLE_1 "Window Display"
if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
else say 'Window is now open'
/*
* Open the window
*/
Address EXAMPLE_1 "Window Open"
if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
else say 'Window is now open'
/*
* Open the window
*/
Address EXAMPLE_1 "Window Open"
if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
else say 'Window is now open'
/*
* Try to read the window title bar
*/
Address EXAMPLE_1 ReadTitle
if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
else say 'Window title is 'Result
/*
* Hide the window
*/
Address EXAMPLE_1 "Window Close"
if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
else say 'Window is now closed'
/*
* Try to hide the window again
*/
Address EXAMPLE_1 "Window Close"
if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
else say 'Window is now closed'
/*
* Send a command that does not exist
*/
Address EXAMPLE_1 Junk
if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
else say 'The command worked!!!'
/*
* Quit the program...
*/
Address EXAMPLE_1 Quit