From: "Eliah Ninyo" <[EMAIL PROTECTED]>
Subject: egroup usesr: plz answer to msg #39828
> i really want some help with my Q, so plz answer them in #39828 or look
> for my msg from 3/10/00 with my name beside.
Regarding the question, "i want some1 hepl me if my fields defination (
const char * ) r ok, or should i use another definition kind and which
ones?":
"const char *" should only be used for something that will not be changed
during program execution (a constant value). Therefore, it is not the right
thing to use when, for example, you want to store a date (const char
*date;). You can use a character pointer (a pointer to a "string") without
declaring it const. For example, char *date; However, declaring a
character pointer does not allocate memory for the string itself; it only
allocates memory to hold the pointer to the string. Also, there are other
ways to store dates which may be more efficient or more convenient to use
(e.g. a DateTimeType).
In your structure, you contain variables for many things that don't make
sense to me, so it is hard to say what the correct declaration should be.
For example,
const char *description; // opens another window for free text
Do you mean that description is the variable that points to the text that is
entered into a text box in another form? Or, do you mean that description
is the variable that will hold the id of that form? The uncertainty about
what exactly you are trying to do is the most likely reason that you haven't
previously received any answers.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/