Hi,
Here is an example to find the carriage return in the Field text using
StrChr.
Example:
FormPtr frmP = FrmGetActiveForm();
FieldPtr fpt;
char * str;
fpt=FrmGetObjectPtr( frmP, FrmGetObjectIndex(frmP,1003)); \\ 1003 is your
Field Resource ID
str=FldGetTextPtr(fpt);
if( (length >= 23) || (StrChr (str, '\n')!=NULL )) \\ if there is no
Carriage Return this condition becomes TRUE
{
\\ Here you have to write the code --
}
Thanks
Manikumar K
Developers' Nation DTS Engineer
Developers' Nation is the fastest, most reliable and affordable way to
resolve your technical issues.
Visit
www.devnation.net
"Kevin Mckee" <[EMAIL PROTECTED]> wrote in message
news:51484@palm-dev-forum...
>
> Thanks for the reply, BUT I need a little more help. Maybe I should say
> that I'm a newbe and anything less than an example doesn't really help.
> Please don't get me wrong, I DO appreciate your time and help, I just need
a
> little more help :).
>
>
> Regards,
>
> Kevin Mckee
> [EMAIL PROTECTED]
> http://www.fortsoft.com
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Philip
> Sheard
> Sent: Sunday, June 03, 2001 3:23 AM
> To: Palm Developer Forum
> Subject: Re: Carriage return help.
>
> > The question I have is, how do I add a "or if a carriage return
character
> is
> > found"
>
> use StrChr
>
>
>
> --
> 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/