Subject | Re: [IBO] Help :OnValidate |
---|---|
Author | Luiz Alves |
Post date | 2001-03-25T16:35:04Z |
> Yes, but, this must work in OnValidate Event.I am not sure, but I think thare are a problem in your code.
> I have :
> if (afield.fieldname='p') then
> p1:=....
> if (afield.fieldname='p1') then
> p:=....
When you are validating p you use:
if (afield.fieldname='p') then
p1:=....
Here, you are changing p1 and this trigger another onvalidate event to p1.
So, this onvalidate event to p1 changes p value triggingan other onvalidate
to p.
Really, I realize you are in a loop.
Try use another approach to this problem.
Luiz.
----- Original Message -----
From: teo miljko <teo.miljko@...>
To: <IBObjects@yahoogroups.com>
Sent: Sunday, March 25, 2001 12:27 PM
Subject: Re: [IBO] Help :OnValidate
>
>
> > On event before post this works well.
> >
> > What about compare fieldbyname('xx').OldAsString with
> > fieldbyname('xx').AsString.
> >
> Yes, but, this must work in OnValidate Event.
> I have :
> if (afield.fieldname='p') then
> p1:=....
> if (afield.fieldname='p1') then
> p:=....
>
> When You change one field manually then OnValidate event change other and
> OnValidate is again execute.
> I want some propertie or some like which tell me that is field changed by
> OnValidate.
> I can use global variable , but...
>
> Teo
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>