so, seems as if you're looking for a way to read the file as a bounch of records and that those records might have different length. Moreover you cannot change the file itself to make sure it can respect a true standard as per start and end of records.
Not an easy job, but regExp can help in parsing it.
I am not reading it each time , I read it all at once to load the listBox, and in listBox I put objects that hold all infos. It might be done better (could be faster, smarter,...) but have a look at how I loaded listbox and then how richtextbox is populated on (single) click
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Thanks for your reply, but the project you are attaching in VB.NET, What i need is in VB6. I know how to translate any .net language conversion such as VC++ .NET , VB.NET , no problem. What i need is in VB6 as i don't know nothing about it.
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Would you please also NOT post rar-archives, because some of us have problems with some rar formats, as it seems.
Please post .zip files which everybody is able to open.
Then let me put a question: what was wrong with the sample I gave?
It should read all alarm blocks, no matter how many empty lines it encounters between blocks.
Many thanks for you reply, i was trying to compile your code and when button click i got
"compiler error: variable not defined " , highlight to this code "ReDim Preserve MyArray(List1.ListCount) As String"
Do you know what it could be problem?
Thanks
Most likely you did not define the variable. The code given is not a complete program but rather a couple of routines. You need to define any variables that will be used.
some of us have problems with some rar formats, as it seems.
try 7-zip. it is free and opens rar...
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Winrar opens pretty much everything as well. Lots of files on the internet are in Rar format. Everyone should have something to open them. In general RAR has a tigher compression resultign in smaller files and can handle larger files than Zip but the win rar program supports about everything you would ever need to do.
Hello, sorry about the RAR file, i will post it in ZIP file again, but just for advice i have been using WINRAR for 5 years , whenever i need it i download straight from their web,no serial need , no crack but it can do most of the function without even popup reminder to register.
Regarding about the gentleman "WoF" , i when i testing ,there is nothing load to the textbox , but anyway rather than just explaining i will attach my sample binary in VB.net and sample data again in ZIP.
If you want to test big file size like 30MB or something please download from http://gb.archive.ubuntu.com/ubuntu/...6/Packages.bz2 or some other package you want
***? Do you think we're crazy? We don't run any .exe's around here.
at least, not if we cannot first get the sources from it...Ever tried Lutz Roeder Reflector?
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
I got a look at sources of first exe he attached (not at this last one), and the download was manual (but did not worked on my system). No automathic download was there. He simply parsed the cvs file to show a list of package you could find at ubuntu site, and to give you infos on the package you selected. Nothing of harmful in that. The only strange thing is the request to translate code in Vb 6.0, which seems a step back, plus the request to access a sequential file like it were an indexed one by a developer who stated he could deal with Vb.Net, C#, Visual C, but know nothing of Vb6.0...and of ascii files.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.