listview ImportFromTXT method
Return to Introduction  Previous page  Next page
Applies to
acListView and acDBListView components.  

Declaration
function ImportFromTXT(const FileName: String; SeparatorChar: Char = #9): Boolean;  

Description
The ImportFromTXT method imports the list items from the plain text file to the ListView.  
 
When it imports items to ListView, it considers each new string as separate row, and the columns should be separated with character specified in SeparatorChar parameter (Tab by default).  

Example
MyListViewView.ImportFromTXT('MyTemplate.txt');  

See also
ExportToTXT and ExportToHTML methods.