home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d5xx
/
d539
/
simplerexx.lha
/
SimpleRexx
/
test.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1991-08-26
|
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