OnStartProcess()



Description

OnStartProcess is called before the first input record is processed. Implement this method if you want to make any kind of custom preparation for the process like creating a new file for custom output, setting up a database connection to be used as an additional reference during the conversion, and so on.


Syntax


Function OnStartProcess


Parameters


none


Return value


none


Example

The following example uses VBScript to create and open a text  file to be used during the conversion procedure.

Dim fso, file
Function OnStartProcess
Set fso = CreateObject( "Scripting.FileSystemObject" )
Set file = fso.CreateTextFile( "c:/work.txt", true )
file.WriteLine( "Process Started" )
End Function


See also

TextConverter's Context Methods
OnRecord()
OnSetUp()