Hi again,
I think that I am lost as to how manage String in general in Palm.  I
come from JAVA background so please have a little patience.
I have the following code fragment which is causing me pain:

...
                case frmOpenEvent:
                        pForm = FrmGetActiveForm();
                        FrmSetFocus(pForm, FrmGetObjectIndex(pForm, 
ApgarInput));
                        //Agregar el valor de Apgar previamente ingresado
                        if (valorApgar != 0) {
                                fldP = GetObjectPtr(ApgarInput);
                                FldInsert(fldP, valorApgar, StrLen(valorApgar));
                        }

I have a global pointer variable valorApgar which is a pointer to the
formerly introduced text in the Field and which I obtain as following:

valorApgar = FldGetTextPtr(fldP);

the global variable valorApgar is declared as follows:

static Char*    valorApgar;

I am getting an error related to an invalid access of memory but to be
honest I AM LOST!!!

Thanks and regards,
JV

On 11/5/06, Jorge Vasquez <[EMAIL PROTECTED]> wrote:
Regards,

I am a Palm beginner and I would like to know if somebody can help me
with code examples to the following 2 problems:

1.  Maintain the previous field value entered by a user in a form.
(The specific scenario consists of a wizard-type application, where
the user has the possibility of navigating between forms and whenever
he goes back I need to maintain the previous values that he/she
entered for each field)
2.  Validate if the input value in a field is an integer.


Thanks to all,
--
Jorge Andres Vasquez

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/



--
Jorge Andres Vasquez

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to