You are directly accessing a system internal (pt->items).  This is a big
naughty.  I guarantee you that if you do this your code will not run on the
next Palm OS.  Please use the published APIs.  In particular use:

Int16 ColumnCount = TblGetNumberofColumns(pT);

-bob mckenzie, palm portland.

-----Original Message-----
From: Louis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 7:18 AM
To: Palm Developer Forum
Subject: Table problem (compiler error)


I am working with a table and have a table ptr declared as follows:

TableType* pT = FrmGetObjectPtr(Form,FrmGetObjectIndex(Form,TableId));

if I want to get the number of columns, I do the following:

Int16 ColumnCount = pT->numColumns;

but I get the following compiler error:

illegal use of incomplete struct/union/class 'struct TableType'

Same for pT->items, etc...

What does this mean?

Thanks




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