[futurebasic] Show Alert Box

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2008 : Group Archive : Group : All Groups

From: Brian Heibert <bheibert@...>
Date: Tue, 14 Oct 2008 17:39:43 -0400
Hi,

I tried this that I found on the List archives on displaying a alert box
Dialog box

LOCAL FN ShowAlert( myMessage$, myExplanation$ )
    DIM AS AlertStdCFStringAlertParamRec params
    DIM AS OSStatus osErrCode
    CALL GetStandardAlertDefaultParams( params,_kStdCFStringAlertVersionOne)

    osErrCode = FN StandardAlert( _kAlertNoteAlert, myMessage$,
myExplanation$, 0, #0 )
END FN

FN ShowAlert ("msg1","msg2")

But I ran into these errors...

Error:€€ Unknown variable type in line 6 of speaktext.bas:
AlertStdCFStringAlertParamRec
  6:  DIM AS AlertStdCFStringAlertParamRec params
                                                ^


Error:€€ Unknown function in line 8 of speaktext.bas:
GetStandardAlertDefaultParams
  8:  CALL GetStandardAlertDefaultParams(params,
_kStdCFStringAlertVersionOne )
                                        ^
 


Is this code out of date or something? How do I display a alert box?

Brian