OnRecord()

Description

OnRecord is called for each input record before the corresponding output record is inserted into the output database table. This is the primary method to be implemented for custom calculations of output values, input record analysis, filtering of output records, and other tasks. (See samples and walkthroughs for more information)

Syntax

Function OnRecord()

Parameters

none

Return value

none

Example

This sample uses VBScript to show how to implement OnRecord() to have an output field as a function of two input fields. 

Function OnRecord()    ' this function is called on each record    

DictOut.Field.value = Left( DictIn.Field1.value, 3 ) & Left( DictIn.Field2.value, 4 )

End Function

See also

TextConverter's Context Methods

GetLine()

SkipRecord()