I need help.

In the following example I am just either showing or hiding a bitmap
depending on how many characters are in a field.

The question I have is, how do I add a "or if a carriage return character is
found"

Example:        if (length >= 23)           "or (if a carriage return character is
found)"
                Then either show or hide bitmap


UInt16          length;
FieldType       *field;

        field = GetObjectPtr(LoginDescriptionField);
        length = FldGetTextLength(field);

        //Description Field
        if (length >= 23)
                FrmShowObject (frmP, FrmGetObjectIndex (frmP,
BitmapResourceID1900BitmapFamily ));
        else if (length <= 22)
        FrmHideObject (frmP, FrmGetObjectIndex (frmP,
BitmapResourceID1900BitmapFamily ));



Thanks in advance.


Regards,

Kevin Mckee
[EMAIL PROTECTED]
http://www.fortsoft.com


-- 
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