There is a mention of this in "Palm Programming: The Developer's Guide",
O'Reilly publisher, in section 5.2.
When you call FrmCustomAlert, you can pass NULL as the text pointer only if
there is no corresponding placeholder in the alert resource. If there is a
corresponding placeholder, then passing NULL will cause a crash; pass a
string with one space in it (" ") instead.
NOTE: That is, if your alert message is "My Message ^1 (^2)", you can call:
FrmCustomAlert(MyAlertID, "string", " ", NULL)
NOTE: but not this:
FrmCustomAlert(MyAlertID, "string", NULL, NULL)
> -----Original Message-----
> From: Stuart Norton [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, July 09, 1999 7:08 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Custom Alerts
>
> Am I right in saying that putting
> FrmCustomAlert(CustomAlert,"Sending R...","","");
> means that you're not actually sending pointers, but data which the
> function
> is taking as being an address to some other string. I tried this, and it
> printed gobbledeegook.
>
> Can someone comment, as this doesn't work!
>
> -----Original Message-----
> From: Steve Patt [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 09, 1999 1:43 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Custom Alerts
>
>
> >FrmCustomAlert doesn't like it when you send it zero length strings. Try
> > FrmCustomAlert(CustomAlert," ","Sending R..."," ");
> >
>
> >> This won't work:
> >>
> >> FrmCustomAlert(CustomAlert,"","Sending R...","");
>
> FrmCustomAlert is perfectly happy with zero-length strings. However I
> suspect the problem is that you have an alert which is looking for ^1 and
> you placed the string in the ^2 position. You probably want
>
> FrmCustomAlert(CustomAlert,"Sending R...","","");
>
> which is code which I have used about a thousand times or so, so unless
> you have mucked up the CustomAlert alert itself (which is of course
> possible), I guarantee that will work.
>
> Steve Patt
> President, Stevens Creek Software
> http://www.stevenscreek.com/pilot
> The home of...
> PalmPrint && UnDupe && On Hand && Take An Order!
> Athlete's Diary && SnailMailer && many more
>
>