WC_VALID% equivalent? (OpenInsight 32-Bit)
At 23 DEC 2005 12:41:08PM Wayne Shepard wrote:
In studying the WRITE event, I've noticed that the VALIDATE routine of a field in the data table gets called twice. It fails validation but the write occurs anyway. How does one write a validation routine that aborts the write routine? Formerly we could use WC_VALID%, but that doesn't exist in OI (does it?).
And why does it get called twice?
Happy New Year all!
Wayne
At 23 DEC 2005 01:24PM dbakke@srpcs.com's Don Bakke wrote:
Wayne,
Normally, validations only get called once but conversions get called twice. This is a subtle change from the way AREV worked. If your validation is getting called twice then it could be because you are using the INVALUE property for this field within your code.
In your validation, are you setting the Status() flag correctly? This should be all you need for the WRITE event to abort.
dbakke@srpcs.com
At 10 JAN 2006 12:47PM Wayne Shepard wrote:
Ah, of course! Status()! I've been working with Get_Status and Set_Status and completely forgot about it. Thanks!