I am trying to add text to the database by clicking on a push button.
As shown below, i have control to a push button, i have set up a flag which
calls up item in the table cell, if flag set to--, print --, and so on.
This creates a new record, but the text is not input into the database, the
table i am using updates itself, but only the top column shows the text from
the call flag, the rest of the table updates itself full of symbols.
/////////////////////////Push Button///////////////////
if ( event->data.ctlEnter.controlID==OrderOnePushButton)
{ g_InfoFlag=50;
newRecord();
drawTable();
g_InfoFlag=0;
}
//////////////////////////Cells/////////////////////
switch( column )
{
case TABLE_COLUMN_ITEM:
{
if (g_InfoFlag==50)
{
StrCopy(string,"One");
g_InfoFlag=0;
}
if (g_InfoFlag==51)
{
StrCopy(string,"Two");
g_InfoFlag=0;
}
break;
What do i need to enter the text into the database by
setText and GetText like with fields ?
Do i also need to mark the rows like this
TblMarkRowInvalid(table, row);
and then TblReDrawTable(table);
Not to sure on how to implement this, can anyone help.
Thanks
adam
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/