Hi Patrick,
I persume the user input is on the first form which is unloaded. The form
that you wish to copy the content to is then loaded. As you are using a
pointer this points to the content of the original form. It doesn't make a
copy of the content. As a result when the form is unloaded the content is
unloaded also and the pointer is cleared. If you wish to store the users
input make a copy of the fields content into a global varaible. This will
then persist until the application terminates.
Hope this helps,
Neil.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Patrick
Heynen
Sent: 17 April 2000 10:55
To: Palm Developer Forum
Subject: Help, Simple problem is driving me crazy
Hi all,
I have a program that copies a decimal value between 50 and 150 From an
field to an other field. I get the user input. Save the data in a CharPtr.
In the debugger is see the value coming in the memory. So far so good. Then
I switch to an other Form and Want to put the Value in that Screen. I would
think that would be easy. I use FldInsert. But When the Functions starts the
Pointer to the Char is gone. It Points \0 and the Char is empty. I have
tried all kinds of things. How is this possible.
Is it possible to exchange data between fields, It should be, or not.
It is just driving me crazy, I tried all kind of things. I just don't know
how to handle this. When I assign my own value to the CharPtr, like this
CharPtr Pulse = "60"; everything goes allright and the figure is printed in
the Field. Has It something to do with the FieldPtr that doesn't exist
anymore when you are in another Field.
HELP ME,
Thanks already, Patrick Heynen
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html