If this is for a database record I would NOT define the storeID as part of
the struct. I would instead just define the database to start with this
struct followed by a list of storeID structs to the limit of the record
size.
If this is for an in memory block (say that would be read from the record
into some temp space), I would have a struct that held the header struct
plus a pointer to a list of storeId structs (an array):
typedef struct {
DWord anyID;
} storeID;
typedef struct {
char itemgrpID[2];
char itemgrp [30];
UInt numItems;
} recordheader;
typedef struct {
recordheader hdr;
storeID* IDList;
} storeInfo;
> typedef struct {
> DWord anyID;
> } storeID;
>
> typedef struct {
> char itemgrpID[2];
> char itemgrp [30];
> UInt numItems;
> storeID qstID[1];
> } menugrp;
>
> Let say that I want to input a new record which has 2 stored
> ID. I have to
> change qstID[1] to qstID[2]. How do I process this? Any help is
> appreciated.
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/