The function call FrmCustomAlert() does this with up to three substrings in
it.  You can easily implement this with the support of StrPrintF in the API.
It would go like this...

int ParamStr(char *pEmbeddedStr, *p1, *p2, *p3)
{
    char output[80];
    int result = StrPrintF(output, pEmbeddedStr, p1, p2, p3);
    StrCopy(pEmbeddedStr, output);
    return(result);
}

Where the param string passed in would be "Hello %s.  Where is %s.  Good %s".

Palm Programming wrote:

> On the mac and newton, there was a function ParamStr that would take a
> string embedded with a ^0, ^1, ^2 etc and replace those place holders with
> a list of supplied substrings.
>
> I saw a textreplacestr mentioned in the docs but i can't find it in any of
> my includes
>
> steve weintraut
> [EMAIL PROTECTED]

Reply via email to