Hi Dhanushka,
To load the values from the structure members into a list follow
the steps given below,
typedef struct
{
char size1[4];
char size2[4];
char size3[4];
char size4[4];
}sizeType;
ListPtr lpt;
FormPtr form;
/* this two steps initialize the List with structure member*/
static sizeType test={"abc","def","jhi","jkl"};
Char * list[4]= {test.size1,test.size2,test.size3,test.size4};
form=FrmGetActiveForm();
lpt=FrmGetObjectPtr(form, FrmGetObjectIndex(form,MainListList));
/* MainListList is the List*/
LstSetListChoices (lpt, list, 4) ;
FormDrawForm(form);
Thanks,
Manikumar K
---------------------------------------------------------
Developers' Nation
You've got the questions; we've got the answers.
Visit Us At :http://www.devnation.net for Palm Developer Support
----------------------------------------------------------
--- In [EMAIL PROTECTED], dhanushka jayakody <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I have structure with several fields:
>
> eg: typedef struct
> {
> char size1[4];
> char size2[4];
> char size3[4];
> char size4[4];
> char size5[4];
> char size6[4];
> char size7[4];
> char size8[4];
> char size9[4];
> char size10[4];
> }sizeType;
>
>
> I want to load the values in these members into a
> list. Can someone explain how to do this, cus the way
> it's done in the "Palm OS tutorial" I have no clue of
> how to put these values into a list.
>
> Can someone pls help me out with this problem?
>
> Regards
>
> Dhanushka.
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> --
> 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/