You are setting all of your rows to be UNusable by the third line inside
your for loop!

-bob mckenzie, palmsource pdx

-----Original Message-----
From: Scott Mebberson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 8:21 PM
To: Palm Developer Forum
Subject: Table resources


I really need some help with tables.

I am trying to create a table and I am having a nightmare. I can't get it to
work, no matter what I do. I am trying to create a table with two columns,
each of them set to textTableItem. I can't even get these to display, I
don't know what I am doing wrong, here is my code.

// Initialize the table used to display the day's appointments.
table = FrmGetObjectPtr (form, FrmGetObjectIndex (form, tblTimeSheet));

rowsInTable = TblGetNumberOfRows (table);

for (row = 0; row < rowsInTable; row++) {

// set the cell styles
TblSetItemStyle (table, row, ClmnDate, textTableItem);
TblSetItemStyle (table, row, ClmnHour, textTableItem);
TblSetRowUsable (table, row, false);
}

TblSetLoadDataProcedure (table, ClmnHour, AddPrjctField);
TblSetLoadDataProcedure (table, ClmnDate, AddPrjctField);

TblSetColumnUsable (table, ClmnDate, true);
TblSetColumnUsable (table, ClmnHour, true);

AddPrjctField, has nothing in it, just a FrmCustomAlert call to let me know
when it is being called. Any ideas anybody?

cheers,

Scott



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