And what are you storing in "Pulse"? A pointer
that you got from the field in the first form? That
pointer will be invalid once the first form is unloaded
and the field memory is deallocated along with the
rest of the form's memory.
You will need to allocate some memory of your own,
put -that- pointer in "Pulse" and then use StrCopy()
to -copy- the data from the field in the first form into
the memory being pointed to by "Pulse".
Once you've done that, you should be able to put
that data into the field in the second form.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
Patrick Heynen wrote in message <8489@palm-dev-forum>...
>
>
>the CharPtr Pulse I mentioned and is an global variable
>Is called it this way:
>
>static *Char;
>
>Maybe, there is something else wrong.
>
>
>>>> [EMAIL PROTECTED] 04/17/00 01:09PM >>>
>Have you tried storing the data in a variable which could be passed
>between
>the forms? Just for a "test" run, make a global variable and place
>your
>data into that. Now see what happens.
>
>--
>
>Tim Astle
>
>
>
>
>Patrick Heynen <[EMAIL PROTECTED]> wrote in message
>news:8483@palm-dev-forum...
>
>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