You are using a pointer to nothing.
You should change the code as follows

FieldPtr fld;
TablePtr table;
FieldAttr attr;

table = GetObjectPtr (ListTable);
fld = TblGetCurrentField (table);
FldGetAttributes(fld, &attr);


"Ai Lee Tang" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi all,
>
> When i compiled my source code, i got a warning message said,
>
> "variable 'attrP' is not initialized before being used"
>
> Following is the source code. How should i initialize "attrP" before i
> used???
>
> FieldPtr fld;
> TablePtr table;
> FieldAttrPtr attrP;
>
> table = GetObjectPtr (ListTable);
> fld = TblGetCurrentField (table);
> FldGetAttributes(fld, attrP);
>
>
> Thanks in advance for your help!
>
> rgds,
> ailee
>
> _________________________________________________________________
> Are you in love? Find a date on MSN Personals http://match.msn.com.my/
>
>



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

Reply via email to