Hope someone can help.
Let's say :
- VFP30
- Grid with 2 Columns
- Each column must be filled in or blank.
- Free Table (can't use the dbc's validations for a table)
In the field level valid() of each column I have:
LOCAL tf
tf=BETWEEN(this.value,"1","5") OR LEN(ALLTRIM(this.value))=0
IF tf
RETURN .t.
ENDIF
RETURN 0
Works OK.
But I need a RECORD level valid() that says
Either
Both columns are filled in
OR
Both columns are blank.
This should occur before I leave the record (obviously).
Thanks,
Gene Berger
Nationwide Warehouse & Storage, Inc.
--- PCBoard (R) v15.3 (OS/2) 10
---------------
* Origin: (1:226/600)
|