revisit the alert issue

2005-07-27 Thread druid
there has got to be a better way, this could get ugly with 10 fields or so #include PalmOS.h #include testaleart.h #include testaleart_res.h Char testdata[256], testdata1[256]; Boolean nofield = false; UInt16 status; static Boolean frmMain_frmTestButton_OnSelect(EventPtr event) {

Re: revisit the alert issue

2005-07-27 Thread Chris Tutty
From: druid [EMAIL PROTECTED] there has got to be a better way, this could get ugly with 10 fields or so You could wrap the test and alert in a private work function that's passed the name and index of the field. That means that your main code would just be: if (handleField(Name, fldName))