Solved

File with delimiters in VB6

Posted on 2009-05-12
2
233 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

705 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