I'm not exactly sure what you are trying to do, but probably the easier
thing to do is use FrmGetActiveFormID to get the ID of the active form, then
you can compare that against the ID for the form you need.

UInt16 formID = FrmGetActiveFormID();

if (formID == myFormID)
{
        // Do stuff
}

Cheers,

-DGA

> -----Original Message-----
> From: Nesselhauf, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 17, 2001 1:09 PM
> To: Palm Developer Forum
> Subject: How do you use FrmGetTitle
> 
> 
> Hi, 
> 
> I want to do something if a certain form is created. So, I 
> want to get it's
> title,
> do a string comparison and then do something if it is that 
> particular form. 
> 
> By doing this: 
> 
> g_pCurTitle = FrmGetTitle(FrmGetActiveForm());
> 
> what gets returned is a null string. How do I get the active form?
> 
> Thanks.
> John
> 
> -- 
> For information on using the Palm Developer Forums, or to 
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
> 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to