Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 6th, 2003, 12:29 PM
Registered User
 
Join Date: Aug 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default handle large data files in VB

hi all,

wots the best way to handle a large text file within Vb??

file is 500Mb, I would like to read it in and make a minor adjustment to each line
then save it.

thanks

andy

 
Old August 6th, 2003, 01:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Andy,

simple solution: a vertical scrollbar at the right of a Multiline TextBox
(with no scrollbars) and at the scroll event read how many lines in the file
that fit in the textbox, starting from the relative position of the scrollbar.
This implies that you have to know in advance how many lines there are in the file.
If you do not know (as I do not either) instead of the scrollbar I put two
buttons (previous page and next page) that I use to navigate in the file. You
cannot go to an exact position of the file but, it works (at least in my case)

Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading large files ravichandrae Pro Java 1 January 11th, 2008 04:42 AM
Strategies for large XML files asearle XSLT 7 September 28th, 2006 02:38 AM
Uploading Large Files to a Doc Lib viccoleman SharePoint Admin 1 May 15th, 2006 01:13 PM
CR in VB.Net Using Large Data Table seabiscuit Crystal Reports 1 July 7th, 2004 12:28 AM
handle a large data file using VB andy_routledge VB How-To 0 August 6th, 2003 12:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.