| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- (*
- * ModBase
- * Release 3.0
- * (c) copyright 1990 PMI
- * P.O. Box 8402
- * Green Bay Wi 53308
- * All Rights Reserved
- *
- *)
- IMPLEMENTATION MODULE DBRelate;
- (* Copywright 1990-1991 John McMonagle
- ModBase 3.0 *)
- FROM ModBase3 IMPORT
- DBFile,ReadDBRec;
- FROM DBIndxes IMPORT
- DBIndex,FindPositionCh,FindPositionN,CurrentRec,NumKeyType;
- PROCEDURE ReadRelate(key:ARRAY OF CHAR; ndx:DBIndex;
- dbf:DBFile):BOOLEAN;
- VAR
- ok:BOOLEAN;
- BEGIN
- IF NumKeyType(ndx)
- THEN
- FindPositionN(ndx,key,ok);
- ELSE
- FindPositionCh(ndx,key,ok);
- END;
- IF NOT ok
- THEN
- RETURN FALSE;
- END;
- ReadDBRec(dbf,CurrentRec(ndx));
- (* assume if ReadDBREC fails program will terminate *)
- RETURN TRUE;
- END ReadRelate;
- END DBRelate.
|