Del Ventruella wrote:
Thanks.
I gave it a try. Still no success.
What happens then? Does the form popup with nothing in the field, or
are you saying that you get a crash? Try boiling down your function to
just the bare essentials, and once you get it working you can add back
in the other stuff. I've pared it down below...
The following is my attempt to call your function from a menu
(with a few artifacts from a prior attempt to call :
SetFieldTextFromStr(field, pText, redraw)).
This doesn't save anything, it is merely a placeholder for what I eventually
hope to do, which also
requires putting the text to the screen:
<edited>
case Save:
{
FormType * frmP;
Char* pText = (Char*) MemPtrNew(5); // allocate 5 bytes
MenuEraseStatus(0);
frmP = FrmInitForm (TransformerForm);
StrCopy(pText, "2000");
mySetFieldText(frmP, kVA, pText);
FrmDoDialog (frmP);
FrmDeleteForm (frmP);
handled = true;
break;
}
</edited>
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/