Reading a Text file if the text is "Tabulated"

Here you can attach your files or example so others can use it, discussions needs to be done at the general board
Post Reply
Darren
Posts: 63
Joined: Wed May 11, 2011 11:55 am

Reading a Text file if the text is "Tabulated"

Post: # 850Post Darren
Tue Apr 10, 2012 3:24 pm

Can anybody help?

I have a text file, that can be opened in notepad.

The text is tabulated.

How can I read the second, third and fourth columns?

Nornally I would ise Mid$(InputString, 12, 8) etc

But this method does not work for Tabulated Text.

Please see the attached file!

Many thanks in advance!!!!

IsoCAM
Attachments
Tabulated_Text.txt
(70 Bytes) Downloaded 719 times

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

Reading a Text file if the text is "Tabulated"

Post: # 851Post Marco
Wed Apr 11, 2012 3:30 pm

Hi, load it into a stringgrid with the as seperator the tab (chr$(8)) or was it chr$(9) you have to find that out. If you want only use your stringgrid as a kind of buffer to process the text you can set visible to false.

if you had some more questions please ask
best regards

Post Reply