| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Rexx, Sbpro, Modem 3/ 4 |
Continued from previous message.
do
MciCmd = 'set rexxalias time format' TIMEFMT 'wait'
MacRC = SendString(MciCmd)
if MacRC 0 then
do
junk = SendString("close rexxalias wait")
signal ErrExit
end
end
/*
** Formulate the play command.
*/
MciCmd = 'play rexxalias'
/*
** check to see if an origin was set.
*/
if FROM'' then
MciCmd = MciCmd 'from' FROM
/*
** check to see if a terminating point was given.
*/
if TO'' then
MciCmd = MciCmd 'to' TO
/*
** append a wait onto the end of the play string.
*/
MciCmd = MciCmd 'wait'
/*
** actually send the play string.
*/
MacRC = SendString(MciCmd)
if MacRC 0 then
do
junk = SendString("close rexxalias wait")
signal ErrExit
end
/*
** close the instance.
*/
MacRC = SendString("close rexxalias wait")
if MacRC 0 then signal ErrExit
/*
** Exit, return code = 0.
*/
exit 0
/* --- SendString --
** Call DLL function. Pass the command to process and the
** name of a REXX variable that will receive textual return
** information.
*/
SendString:
arg CmndTxt
/* Last two parameters are reserved, must be set to 0 */
/* Future use of last two parms are for notify window handle */
/* and userparm. */
MacRC = mciRxSendString(CmndTxt, 'RetSt', '0', '0')
if MacRC0 then
do
ErrRC = MacRC
say 'MciCmd=' CmndTxt
say 'Err:mciRxSendString RC=' ErrRC RetSt
MacRC = mciRxGetErrorString(ErrRC, 'ErrStVar')
say 'mciRxGetErrorString('ErrRC') =' ErrStVar
MacRC = ErrRC /* return the error rc */
end
return MacRC
/* -- keywords --
**
** Parse the arguments according to the keywords.
*/
keyword:
arg key, value
if key='FILE' then
FILE=value
else if key='DEV' then
DEV=value
else if key='FROM' then
FROM=value
else if key='TO' then
TO=value
Continued in next message.
* With foxes we must play the fox.
---
* RoseReader 2.50* P004198 Entered at [PROGRAMMERS GLD]
--- QScan v1.067b
* Origin: Programmer's Guild BBS, Hamilton, Ont. (1:244/317)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1 @PATH: 244/317 300 99 12/12 3615/50 229/2 12/2442 711/409 54/54 711/808 809 @PATH: 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.