Date: Tue, 25 Nov 1997 13:00:36 -0500
Reply-To: REXX Programming discussion list <REXXLIST@UGA.CC.UGA.EDU>
Sender: REXX Programming discussion list <REXXLIST@UGA.CC.UGA.EDU>
From: Gilles Plante <sittel@IBM.NET>
Organization: SITTEL
Subject: Re: W95 RxMessageBox problem
Content-Type: text/plain; charset=us-ascii
pvwrght@ibm.net wrote:
>
> I am experimenting with IBM Object Rexx for Windows 95 and can't get
> the RxMessageBox function to work. What am I doing wrong?
>
> /* Test REXX */
> call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
> call SysLoadFuncs
> if RxMessageBox( 'Shall we continue' , 'TitleText' , 'YesNo' , 'Query' )
> = 7
> then exit
>
> code above returns:
>
> 4 *-* if RxMessageBox( 'Shall we continue' , 'TitleText' , 'YesNo'
> , 'Query
> ' ) = 7
> Error 40 running C:\REXX\pw.REX line 4: Incorrect call to routine
>
> Thanks,
> Philip Wright
In OS/2, this function can not be called if the Rexx program is started
from the command line: it has to be launched from a graphical
application. May be it is the same with Win 95.
--
Gilles Plante, ing.
Les Microsystemes Sittel Ltee
2073 Branly, Sainte-Foy, Quebec, Canada, G1N 4C7
Tel:(418)682-0286 -- sittel@ibm.net
|