Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > Arrays in VB.net..


Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2012, 02:50 PM
HappyJoni's Avatar
HappyJoni HappyJoni is offline
Centurion
 
Join Date: Jun 2003
Location: New Jersey
Posts: 150
Default Arrays in VB.net..


I need to create an array that starts collecting data in the 11th line of a text file. The data collected starts in the first position for a length of 6. I need to continue to read records and load the array until I hit a 'blank' in the first position. I then have to continue to read the file until there is non longer a 'blank' in the first position (or, could just keep reading till I find a 'G' in the first position as I am looking for the 'Grand Total') and then parse through that record to get the numeric value in that line (will always be different so I can just specify location and length) and assign that value to a variable. Is this even possible??

I've been stuck on this for 2 days now.. any help is veryyyy appreciated!

FYI: I need to use the array for QC purposes... I have to check the values against another file to see if they match.


Thanks!
Joni
Reply With Quote
  #2  
Old 07-22-2012, 05:03 PM
Cerian Knight's Avatar
Cerian Knight Cerian Knight is offline
Multi-Technologist

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 3,751
Default

Joni, I've moved this thread to the .NET side of the forum (since your title has .NET in it).

Can you show us what code you have tried?
__________________
"May the code that you write never work in ways that you didn't expect; and may the code that you didn't write never require you to maintain it". - Ancient Chinese Proverb
Reply With Quote
Reply

Tags
arrays


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->