Highlights - Widely accepted data format used by
QuickBooks and MS Money.
location: InstallDir/Samples/TextConverter/2 Irregular field and record delimiters/ project file: InstallDir/Samples/TextConverter/2 Irregular field and record delimiters/2.2 QuickBooks.ConverterX
Open the"2.2 QuickBooks.ConverterX" project file by pressing the Open button on the tool
bar ( The information for a single input record spans several lines of the input text: <STMTTRN> After the input file is loaded, a list of the most suitable record delimiters was populated for the record delimiter option. 1. Select "<STMTTRN>" as a record delimiter. '----------------- OnRecord -----------------
Function OnRecord Dim dt dt = this.GetValueByTag("<DTPOSTED>") If Target.IsEmpty(dt) Then this.SkipRecord: Exit Function DictOut.DTPOSTED.value = Target.InitDate( Left(dt, 8), "YYYYMMDD" ) DictOut.NAME.value = this.GetValueByTag("<NAME>") DictOut.TRANAMT.value = this.GetValueByTag("<TRNAMT>") End Function
Each change in the script is immediately reflected in the output preview, which makes it easy to create custom
conversions quickly and without errors.
Select the output database table and click
Run (
Go to Sample 2.3 for more training. (Go back to 2.1 TagSearch) Go to 2.3 Dictionary for more training.
Related SectionsSetting up a Conversion: Step-by-Step
|