I dont think you should use const in your struct, as you will not be able
to assign values to the variables (as their constant).
Rik
> -----Original Message-----
> From: Eliah Ninyo [SMTP:[EMAIL PROTECTED]]
> Sent: 03 October 2000 15:53
> To: Palm Developer Forum
> Subject: i need a suggetion for my recoeds...
>
> hello,
>
> i made a struct with diffrent kinds of fields. here it is:
>
> typedef struct
> {
> SDWord FormID; // a number id
> const char *SrvCall; // 8 digit number
> const char *date; // the date when the form
> opened/created
> UInt statuse; // 0 = close ; 1 = open
> const char *RecivedBy; // this shuld open a list with
> names and the user should choose
> const char *SrvType; // also a popup list
> const char *description; // opens another window for
> free text
> const char *PartsNeeded; // opeb another window where
>
> the user choose parts
> const char *Conclusion; // open another window for
> free text.
> const char *FromTime; // the user select a HH:MM
> const char *ToTime; // the user select a HH:MM
> UInt summery; // summery = fromtime - totime
> }
> Form;
>
> i want some1 hepl me if my fields defination ( const char * ) r ok, or
> should i use another definition kind and which ones? ( i wrote beside
> every
> field what its purpose )
>
> one more thing is:
>
> how do i locate the time the form is opened. i need the date fiels to be
> added automaticly to the moment it's opened, how do i get the built-in
> date
> to my field?
>
>
> i have some more Q but i don't want to ask them all in the same msg, so u
> see more from me soon.
>
>
> tnx in advance for your help :-)
>
>
>
>
>
>
> --
> 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/