Okay, then you must be using a common memory location where you copy your
record and take the pointer of that to populate your table. The problem is
all the table elements are using the pointer to same memory location and
since that memory location contains the contents of the last record(i.e, the
last iteration of the loop) hence all the elements in your table are
displaying the contents of the last record only. Use separate memory
location for each row of the table.

Khurram+



----- Original Message -----
From: Ravindra <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 9:12 AM
Subject: Re: Facing Table Problem.............


> Hello
>     Sir,
> Thank You Very Much for your Reply.
> I  am not at all hard coded value.But loop varible which  I am using
,every
> time I
> initilized when I start new pass of loop . Then where I am wrong?
> In my table only last value of varibles which i got during last pass of
loop
> is disply in all the rows of table.
>
> Plesase help me to solve this if possible by sending samll snippet of code
> which retrive records from database & show that in table
>
> Thank You Very Much
>
> Regards
>    Ravi
>
>
> ----- Original Message -----
> From: "Shaikh Khurram Saghir" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Friday, June 22, 2001 5:23 PM
> Subject: Re: Facing Table Problem.............
>
>
> > The problem seems to be in your code. It seems to me that while setting
up
> > the values for the elements of the table you have either hard coded
> > something or you are using the same record element from your database to
> > populate all the table elements. Remeber the same LOOP element is not
> going
> > to be used for every row :-) . Its a case of classical silly mistake :-D
> >
> > Khurram+
> >
> > ----- Original Message -----
> > From: Ravindra <[EMAIL PROTECTED]>
> > To: Palm Developer Forum <[EMAIL PROTECTED]>
> > Sent: Friday, June 22, 2001 1:04 PM
> > Subject: Facing Table Problem.............
> >
> >
> > > Hi EveryBody ,
> > >  I am new to palm development , that's why facing lot of problems can
> > > anybody help
> > > me ?
> > >
> > > I've got a problem with handling Palm OS tables. I've got a table with
3
> > > rows and 4 columns.3 columns are filled with static data and only one
of
> > the
> > > columns contain field data from a database record. I've kept one
column
> as
> > > numeric type and rest all Label type. Now, I retrieve 3 records which
> are
> > > currently there in the database and in a loop try to display a
> > > particularfield in one of the table's columns.
> > >
> > >
> > >  I find that the the column containing database data always displays
the
> > > last record's data
> > > in all the rows. All the other columns are displaying data as
required.
> > I'm
> > > printing them in
> > > an Alert also, where all the record data in the loop are changing as
in
> > the
> > > database, but finally in the table column only last record's field
value
> > is
> > > being dispalyed.
> > >
> > >
> > > Also, I've got another form having FIELDS showing various fields of
the
> > > database. Here I can see my record's fields one by one by using NEXT
and
> > > PREVIOUS buttons on this form. So, this means that the database
> retrieval
> > is
> > > working fine, I presume. So then why only the last record's field
values
> > are
> > > being dispalyed in all the rows of the table? Strange !!
> > >
> > >
> > > I've tried many different ways to tackle this problem but with no
> success.
> > > Please let me know if you can help me out. Logically allz fine, but
> > somehow
> > > something isn't working.
> > >
> > > So can u help me solve this by sending me any code .
> > >
> > > Thank you very much in advance
> > >
> > > Bye
> > >
> > > Regards
> > >     Ravi
> > >
> > >
> > >
> > >
> > >
> > > --------------------------------------------------------------
> > > Nova Software, Mumbai, India
> > >
> > >
> > >
> > > --
> > > 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/
> >
> >
>
>
> --------------------------------------------------------------
> Nova Software, Mumbai, India
>
>
>
> --
> 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