Jan de Bruin
WD11 + mandatory input May 23, 2008 01:09PM |
Ricardo
Validate field entry May 24, 2008 06:05AM |
Carlo Hermus
Re: Validate field entry May 24, 2008 12:04PM |
i is int = 1 bValidateOK is boolean = True ResControl is string ResControl = EnumControl(GR_Validate, i) WHILE ResControl<>"" i++ IF {ResControl}..Value = "" THEN bValidateOK = False MyFont is Font MyFont = FontCreate("Tahoma", 8, iBold, iDarkRed) {ResControl}..BrushColor = LightRed END ResControl = EnumControl(GR_Validate, i) END IF bValidateOK THEN Do stuff.. ELSE NextTitle("Shared TimeSheet") Info("A.u.b. alle benodigde velden invullen.") END
GuenterP
Re: Validate field entry May 24, 2008 01:15PM |
Moderator |
Glenn Rathke
Re: Validate field entry May 24, 2008 02:34PM |
GuenterP
Re: Validate field entry May 24, 2008 04:07PM |
Moderator |
Carlo Hermus
Re: Validate field entry May 24, 2008 10:43PM |
Quote
GuenterP
Hi Carlo, in RAD-generated Forms, the RADSave() procedure is the right place for validation. Btw, good old RAD is still there in WD12, together with that good old bug in the OK-button code. It's more or less the last one in RAD Form with browse. Kind regards, Guenter
Jan de Bruin
Re: Validate field entry May 27, 2008 09:53AM |