NetTalk Central

Author Topic: Validation for non-field conditions  (Read 4775 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Validation for non-field conditions
« on: August 15, 2007, 11:52:44 AM »
Hi,

I have an XP tabbed form that consists of a series of fields of the primary record and two child browses.   I put a conditional text display on the tab involved to provide error information retrieved with GetValue.   This works fine for the fields of the primary record, but I need to validate the child browses as well.  Here is what I am trying at the bottom of ValidateRecord Routine

  IF MyTest()
     loc:InvalidTab = 2                         !3rd tab displayed
     loc:Invalid = loc:testfield               !A dummy STRING, see below
     p_web.SetValue('ProblemMessage','You must have one entry')
     EXIT
  END

The test and the setvalue work fine, but the app goes on to save the incomplete logical record anyway.   I have tried with and without the dummy STRING variable on the form.

Can anyone point me to a solution for this problem?

Thanks