engine:import:addstring
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
engine:import:addstring [2018/08/13 22:08] – Gerard Nicol | engine:import:addstring [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== AddString ====== | ====== AddString ====== | ||
- | Add a special | + | Add a special |
===== Phase ===== | ===== Phase ===== | ||
Line 7: | Line 7: | ||
This instruction is used by the TapeTrack Import Engine. | This instruction is used by the TapeTrack Import Engine. | ||
===== Syntax ===== | ===== Syntax ===== | ||
- | AddString(type, | + | '' |
- | string type; integer offset; string filter; | + | |
- | type The special string type of one of the following: | + | |
- | 1. HEADER A string that represents the first record of a heading section. | + | |
- | 2. EXCLUSION A string that represents the a record that should be excluded from all further processing (skipped). | + | |
- | 3. START A string that represents when processing should start. If there is no start string specified processing will start at the first record. | + | |
- | 4. END A string that represents when processing should temporarily stop. Processing will recommence at the next START record. | + | |
- | 5. TERMINATE A string that represents when processing should permanently stop. No processing will be done past this point, even if a START record is encountered. | + | |
- | offset The zero based offset within the record at which the filter should be applied. | + | |
- | filter A filter value for comparison with the processed string. | + | |
- | ===== Examples ===== | + | |
- | Example | + | ^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ Min Value ^ Max Value ^ |
+ | |type| String | The special string type from the below Type Values table |1|10| | ||
+ | |offset| Integer | The zero based offset within the record at which the filter should be applied.|1|10|-214748364 |2147483647| | ||
+ | |filter| String | A filter value for comparison with the processed string.|1|256| | ||
+ | |||
+ | |||
+ | ^Type Values ^^ | ||
+ | ^Value ^ Description ^ | ||
+ | |HEADER |A string that represents the first record of a heading section.| | ||
+ | |EXCLUSION |A string that represents the a record that should be excluded from all further processing (skipped).| | ||
+ | |START| A string that represents when processing should start. If there is no start string specified processing will start at the first record.| | ||
+ | |END|A string that represents when processing should temporarily stop. Processing will recommence at the next START record.| | ||
+ | |TERMINATE|A string that represents when processing should permanently stop. No processing will be done past this point, even if a START record is encountered.| | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | Define a header (ANSI page break) with 7 records, skip records not starting with an Integer | ||
+ | |||
+ | < | ||
AddString(HEADER, | AddString(HEADER, | ||
SetHeaderCount(7); | SetHeaderCount(7); | ||
AddString(EXCLUSION, | AddString(EXCLUSION, | ||
AddString(TERMINATE, | AddString(TERMINATE, | ||
+ | </ | ||
+ | |||
+ | ===== See Also ===== | ||
+ | |||
+ | [[engine: | ||
+ | [[cli: | ||
+ | [[cli: | ||
+ | |||
+ | {{tag> import_engine sync_engine}} | ||
engine/import/addstring.1534198097.txt.gz · Last modified: 2025/01/21 22:07 (external edit)