ExternalCheckValue

Top  Previous  Next

Prototype

 

intResult:=ExternalCheckValue(strInput,strDLLName)

 

Description

 

Checks if a value is formerly corrected using an external DLL where is implemented a custom function making the check on input data.

 

The DLL can be written with every programming language. It is important that the DLL have to export a "Check" function with standard call style and have to accept as parameter a null terminated string pointer  (the value to check):

 

int Check(char*)

 

The returned value is numeric and it report the checking status.

 

Parameters

 

strInput: string containing the data to check.

 

strDLLName: string containing the DLL name to use.

 

Returned value

 

Integer value meaning the checking status. As example =0 if the value is correct and <>0 if not.

 

Notes

 

None.

 

Example

 

if ExternalCheckValue(RecognizedData,'CHECKCREDITCARD.DLL')=0

then CrediCardNumberOk:=False

else CrediCardNumberOk:=True;