[futurebasic] Alert dialogs

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

From: Stewart <stharris@...>
Date: Wed, 19 May 1999 16:17:20 -0400
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%

'-------- Main -----------
"main"
WINDOW OFF
WINDOW 1
DIM 40 Str1$
DIM ans1%

Str1$ = "Manuellita Shuttlerworthy"

ans1% = FN ErrorHandler(Str1$)                    '<--- Doesn't show ?
ans1% = FN ErrorHandler(Str1$)                    '<--- Does show !

gQuit% = 1
DO
HANDLEEVENTS
UNTIL gQuit% = 1
_________________________________________________________

The TEXT in DIALOG 128 IS:
The entry  "^0" IS too LONG.
It will be truncated TO 20 characters.

'There is also a "Go Back" and an "OK" button which deliver the proper numbers when they are pressed.

My question, besides Why doesnt it work both timesPRINT
IS what exactly happens when PARAMTEXT IS called, AND why does it need TO receive three empty stringsPRINT

Also, what IS the zero FOR that gets passed by FN STOPALERT(Dlg%,0)PRINT

AND finally, where can I READ some information ON thisPRINT

Thanks FOR the HELP

Stewart