ExternalCorrectValue

Top  Previous  Next

Prototype

 

intResult:=ExternalCheckValue(strInput,strDLLName)

 

Description

 

Tries to correct the format of a value using an external DLL where is implemented a custom function making the correction on input data.

 

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

 

void Correct(char*, char*)

 

The buffer where to insert data is allocated by the script engine and has a input buffer double size.

 

Parameters

 

strInput: string containing the data to correct.

 

strDLLName: string containing the the DLL name to use.

 

Returned value

 

String with the corrected data.

 

Notes

 

None.

 

Example

 

CorrectedData:=ExternalCorrectValue(RecognizedData,'CORRECTDATEFORMAT.DLL');