can anyone advice me what i should be doing.
what i've done is tried to is call text into by table by clicking on a push
button.
This works o.k, but the text is repeated many times instead of once.
Both button and table are on the same form.
I also have the problem of clicking on the button, this then calls draw
table.
As i have many push buttons, i don't want to call the table every time and
have the same text input into the table, from every push button.
Each push button should enter new text.
Do you have any ideas what i need to be doing for this.
I need to be entering a string for every pushbutton that is clicked.
here is an example of my prog
//Push Buttons
{
Word buttonID;
buttonID=event->data.ctlSelect.controlID;
switch(buttonID)
{
case PizzaMushroomPushButton:
case PizzaEmilliaPushButton:
{
Word ctrlID=event->data.ctlSelect.controlID;
ControlPtr ctrlPtr=event->data.ctlSelect.pControl;
short CtlGetValue(ControlPtr ctrl);
void CtlSetValue(ControlPtr ctrl, short on);
}
if (ctrlID==PizzaMushroomPushButton)
{
newRecord();
drawTable();
}
if (ctrlID==PizzaEmilliaPushButton)
{
newRecord();
drawTable();
}
}
break;
///This is were it calls up the table item to be entered into the table//
switch( column )
{
case TABLE_COLUMN_ITEM:
{
StrCopy(string,precord + DB_ITEM_START);
StrCat(string,"");
}
break;
(I'm not using a label)
cheers
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/