ComponentOne List 8.0 for ActiveX
ExportToDelimitedFile Method

 

True DBList Reference> TDBList Methods> ExportToDelimitedFile Method

ExportToDelimitedFile Method

The ExportToDelimitedFile method exports the specified rows from the control to the specified file as delimited ASCII text, where each row (record) occupies its own line.

Syntax

TDBList.ExportToDelimitedFile pathname, [delim], [selector], [prefix], [suffix]

Arguments

pathname specifies the file to which list rows are exported.

delim specifies an optional delimiter string used to separate fields.

selector is an optional value that specifies the rows to be exported.

prefixspecifies an optional string used with suffixto surround each value.

suffixspecifies an optional string used with prefix to surround each value.

Return Value

None

Remarks

Method applies to TDBList control.

Fields are delimited by the delim string (the default delim is empty). Field values can also be placed between a prefix string and suffix string.

The selector argument determines the rows to be exported. It can be one of the following constant values:

0 - dblRSAllRows

All available rows are exported. If the selector argument is omitted, this value is assumed.

1 - dblRSSelectedRows

Only selected rows are exported. The control's SelBookmarks collection contains a bookmark for each selected row.

2 - dblRSCurrentRow

Only the current row is exported.

See Also

TDBList and TDBCombo Controls

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback