473,396 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help with VB6 string parse thingy....

After several attempts, I am in need of some expert help parsing lines of text w/ VB6 Pro. Here's the scenario: It starts with an Excel sheet which is an export from a Peachtree accounting app. I have taken the Excel file and made a text file from it with many hundreds of long lines.

Each item is made up of anywhere from 8 to 10 of these lines. There's no key field with unique data that can be anticipated. The first 7 characters of each line (in the first tab field) make up the item number, which are what I would, in effect, like to use as a key. There is string data on several other lines that I need to extract and associate with the item no.

I think I need to loop through line inputs, checking for an item no. match with my search string. Next, If there's an InStr match, I need to check the line for substring labels that I know will preceed the data I need to get.
For example, if the second line has the string "Size:" in it, I know how to grab the size that follows, or if "Serial #::, how to get the serial number that follows.
The problem is that the size can be on any line, and the serial number can be on any other line.

None of this, however, seems to be working for me...Has anyone done this sort of thing before? Any ideas?
Aug 17 '07 #1
0 1144

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Dustin Lee | last post by:
Seems like py-complete.el offers some cool features, if I could only get it to work. >From the file ;; 1. hippie-expand support via try-complete-py-complete-symbol, ;; just like the...
1
by: michael | last post by:
Hello, I have a script that is called by the shell this way : mqtrigger.py "TMC 2TEST.QUEUE LV1871.MQPROCESS" So argv is the string "TMC 2TEST.QUEUE LV1871.MQPROCESS" I...
7
by: cw bebop | last post by:
HTML code: <form id="Form1" method="post" runat="server"> <asp:TextBox id="TextBox1" style="Z-INDEX: 105; LEFT: 120px; POSITION: absolute; TOP: 64px" runat="server" Width="144px"></asp:TextBox>...
0
by: Shaggyh | last post by:
hi im needing help with a program im writing to do subnetting i was on before about it and i got some help. the code below wont work for me and i cant think of why not. i was wondering if anyone...
0
by: john | last post by:
Hi,All MS Tech Gurus: I need your help!!! It is the second time I post this message, I need get some feedback ASAP, Please Help!! Thanks a lot in advance. John I have a csharp method, using...
3
by: Rob | last post by:
Any idease on how to fix ? The Code in C# public void Load(string FileName) { LineToDraw l; try { this.Clear(true);
31
by: Extremest | last post by:
I have a loop that is set to run as long as the arraylist is > 0. at the beginning of this loop I grab the first object and then remove it. I then go into another loop that checks to see if there...
6
by: SteelSide | last post by:
Ive searched and searched,but havent been able to get it to work. ----------------- #include <iostream> using namespace std; std::string tempHostNameStr = "s1e2.hidden.thingy.org"; char...
3
by: Simon Brooke | last post by:
As various people will have noticed, I've been having a lot of trouble with XSL lately. Brief history: I wrote myself an XML toolkit back in 2000, and it worked well enough for me, so it's been...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.