Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab-delimited to array

Status
Not open for further replies.

fbizzell

Programmer
Jul 3, 2000
217
0
0
I saw this post thread288-87443 but I did not understand whether the listtoarray function would take lines from a text file and bring them into an array?
 
Hi Fbizzell,

The function would take a single line and break it into array elements. According to the documentation:

Code:
Notes:    Examples of usage:
             aRes := ListToArray("AB, BC,CD ")    // Result: {"AB","BC","CD"}
             aRes := ListToArray("A, B, C ",,"N") // Result: {"A"," B"," C "}
             aRes := ListToArray("A; B; C",";")   // Result: {"A","B","C"}
             aRes := ListToArray("   ")           // Result: {}
             aRes := ListToArray("   ","D")       // Result: {""}

So you would need to read the file in and process each line.

Regards

Griff
Keep [Smile]ing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top