
GR001.TXT
gINT Rules Code Samples - 001
Requires gINT version 6.1.016 or later.
NOTE: Code samples are provided free of charge and as-is. gINT Software makes no claim or warranty as to the accuracy of the samples. It is the responsibility of the user to ensure that the code performs as it should. Comments, suggestions, and error reports are appreciated.
Description
===========
These files are referred to in the CODE SAMPLES section of the Help topic on gINT Rules. Some of the things the code does is:
checks for depths greater than the hole depth
calculates sample recovery, solid core recovery, and RQD from the sample lengths and recovery lengths and checks to ensure that recovery is greater than or equal to SCR which is also greater than or equal to RQD
populates the bottom layer depths in a LITHOLOGY table
calculates CPT friction ratio
provides units for chemical tests and checks for specification exceedence
Revision History
================
05 January 2004:
1. Changed the HoleDepthCheckFnB function in the COMMON PROCEDURES module to use the ForeignKeyValues property instead of the ParentRecord property which doesn't work in the child grid of a parent-child screen.
2. Changed the following module names to be consistent with the other gINT Rules samples:
GR001 INPUT CHECK to GR001
GR001 INPUT CHECK DLL to GR001 DLL
3. Changed some commenting and other cosmetic items to be consistent with other gINT Rules samples.
--------------------------
03 November 2003:
Modified to better document the code and to have it match new features described in the Help file update of this date.
--------------------------
16 October 2003:
Initial upload
*************************************************
INCLUDED FILES:
GR001.GLB:
gINT Rules code modules:
GR001 Main
Chemistry
CPTReadings
Litholgy
Sample
GR001 DLL Main
GR001 COMMON PROCEDURES AddToList
HoleDepthCheckFnB
InitFieldsFnB
PercentFromLengthFnB
Library Tables GR001 CHEMICALS
GR001.GPJ:
Sample project that makes use of the code modules.
GR001.VBP, .VPW, .CLS, InputChecks.CLS, CommonProcedures.BAS, HoleDepthWarning.FRM:
Sample VB 6 DLL project. Binary compatibility is not set since it must point to a file in a specific path which will different on your system. See the instructions in the CONVERTING TO A DLL under the CODE SAMPLES section of the Help topic for directions.
GR001.DLL:
The final, compiled DLL. You must register it on your system with Start:Run and then REGSVR32 <path to this file>\gr001.dll.
*************************************************
INSTALLATION PROCEDURE:
Copy the files wherever you prefer. To see the gINT Rules code modules you must either merge the GLB into your library (Utilities:Lib Merge/Copy) or change to the included library (File:Change Library).
*************************************************
SPECIAL NOTES:
1. Make sure you read the gINT Rules Help topic for detailed descriptions of these procedures.
*************************************************