TIP: Click on subject to list as thread! ANSI
echo: foxpro
to: ALL
from: GENE BERGER
date: 1997-01-23 10:32:00
subject: GRID: RECORD LEVEL VALID

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.