Solved

File with delimiters in VB6

Posted on 2009-05-12
2
227 Views
Last Modified: 2013-11-25
Hi
I am reading a file into VB6 which is in a very disorganised format of:

AD01         xxxxxxxx                            xxxxxxxxx                                        xxxxx        xxxxxxxxxxxxx             AD02xxxxxxxxxxxxxx xxxxxxx                                             xxxxxxxx AD03                                                        xxxxxxxxxxxxxxxxxxxxxxxxx  ... AD30 xxxxxxxx

where AD?? are the delimiters for pieces of data.  The data may have leading white spaces, white spaces in the middle of the data, and trailing white spaces. I need to remove the leading and trailing whitespaces and replace any interim whitespaces with a single space The data in each field is of arbitrary length and can be over multiple lines.

I would like to read in the file and split up the data into managable chunks to be displayed in corresponding text boxes in the new single white space format.

as an aside if someone could tell me if it is possible to make the text boxes automatically produce a vertical scrollbar should the text be longer than the text box that would be brilliant too.

Any help or pointers would be very much appreciated.

Thanks in advance
0
Comment
Question by:viralss
2 Comments
 
LVL 3

Accepted Solution

by:
mpeaden2 earned 500 total points
ID: 24370389
0
 

Author Comment

by:viralss
ID: 24383356
excellent, that did the job with a little effort!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question