Delphi Examples: DbiVerifyField

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Delphi Examples: DbiVerifyField

Return to chapter overview

Verifiy that the data specified is valid for the first field.

In this example, the field must be of type double. Blank is set to True if the field is blank.

This example uses the following input:

 fDbiVerifyField(Table1.Handle, Blank);

 

The function is:

function fDbiVerifyField(hTmpCur: hDBICur; var Blank: LongBool): DbiResult;

var

 Key: Double;

begin

 Key:= 20000.00;

 Result := DbiVerifyField(hTmpCur, 1, @key, Blank);

end;