OnBeforeUpload function |
Top Previous Next |
|
This function has the following syntax:
function OnBeforeUpload(Input: Variant; var UseFileContents, IsKeyField, SkipField: Boolean): Variant; begin end;
The result of the OnBeforeUpload function is the value that SQL File Import will use to process the target column. If you do not want to change the input value in any way, simply assign the input value to the result e.g.
function OnBeforeUpload(Input: Variant; var UseFileContents, IsKeyField, SkipField: Boolean): Variant; begin Result := Input; end;
If the value is a file name, and you want SQL File Import to upload the contents of that file, set the UseFileContents value to True e.g.
function OnBeforeUpload(Input: Variant; var UseFileContents, IsKeyField, SkipField: Boolean): Variant; begin Result := Input; UseFileContents := True; end;
|