Two things: Your subject says the error occurs on the first line, but your message says it occurs on the second. Anyhow, the data.fldEnter information is only valid when pEvent->eType == fldEnterEvent. I'm assuming you do check that.
You're not allowed to access the internals of the FieldType struct. I'm not sure if this is the cause of the error, but it is definitely a cause of possible errors down the road. --- Tim "Sebastian Noack" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I want to check whether my field isn't empty. I know I could use the > FldGetTextLength function. But I'm interested in why I can't solve it as > follows... > > EventType* pEvent > FieldType* pField; > > //... > > pField = pEvent->data.fldEnter.pField; > if (pField->textLen > 0) > // ... > > In the line of "pField->textLen", the compiler nags "dereferencing pointer > to incomplete type". > > Regards > Sebastian Noack > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
