tried this also
if(!fldTest)status = FrmAlert(frmAleart);
else
{
GetFieldData( fldTest, testdata, 255 );
}
return true;
and i tried
static Boolean frmMain_frmTestButton_OnSelect(EventPtr event)
{
UInt16 fld;
// Insert code for frmTestButton
FormPtr pForm = FrmGetActiveForm ();
FieldPtr pField = FrmGetObjectPtr (pForm, FrmGetObjectIndex (pForm,
fld));
if(pField == NULL)status = FrmAlert(frmAleart);
else
{
GetFieldData( fldTest, testdata, 255 );
}
return true;
}
so im at a loss I know it simple
I need to test for NULL in the field before I call GetFieldData
and if it is NULL call FrmAlert and have the call to GetFieldData
in an else statement
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/