******************* Look Down !
******************* Richard Burmeister wrote: > > 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. hi, 10x u helped me very much. about the last things u wrote in your re email (above): the const char *description; // opens another window for free text is ment to be a field the when i press the line near it (on the device screen) it should open a new window, where the user can add free text. on the device it looks like this: (below the word is the resources i used with CW constructor) Description: _________ label resource i don't know in what resource i shuold use so that when i press it a new window will pop up and the user can enter his free text. so if u have advise plz tell me (in what resource from constructor should i use???)??? near the labe should appear the first four words the user enter in the free-text-window. ex.: if i entered in the free-text-window the text all the people in the world r one of a kind. (don't put atantion to this santance, i made it up) we see on the device near the description label: all the people in... my Q is: what should be the definition type of the description in my structure? how to i connect this varible to be save with all the other fields to my form database (which u know how it looks from the last msg)? hanks for your time, hope to hear from u soon and a happy new year (i'm from israel and we celebrated the new yeat in this week) bye :-) -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
