[futurebasic] Re: [FB] Alert dialogs

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: Pierre Zippi <pzippi@...>
Date: Wed, 19 May 1999 15:33:55 -0500
Stewart wrote:
> 
> I have some elementarily questions about Alerts: I cant get one to work the first time I call it, but if I call it twice, it
> always works.
> 
> The following is an example.
> 
> RESOURCES "CKBook.rsrc","APPLxxxx"
> GLOBALS "CKBook.GLBL"
> END GLOBALS
> GOTO "main"
> '-------------------------- Functions ------------------------------
> 
> LOCAL FN ErrorHandler(Str3$)
> DIM Btn%
> CALL PARAMTEXT(Str3$,"","","")                    'Str3$ replaces ^0
> Btn% = FN STOPALERT(128,0)
> TRON BREAK
> END FN = Btn%
> 

I had the same problem. I never figured out why the alerts would not appear
the first time they were called in OS 8.X.
If no one comes up with a better answer, the following line of code is a work-around.

Btn%=FN STOPALERT (128, 0)
IF Btn%<0 THEN Btn%=FN STOPALERT (128, 0)'try again OS8 prob?




Tel. 972-509-6387
Fax. 972-509-6941
+++++++++++++++++++++++
Home email: paz@...
Home web: http://web2.airmail.net/paz