bsave/bload help! 
Author Message
 bsave/bload help!

Quote:

>Is it possible to bload only part of a file into an array that isn't
>large enough to hold the whole bsaved file?

>For example, if I bsave a matrix of numbers that's 20 by 20 (meaning a
>total of 400 numbers), can I bload just a part of those numbers into
>an array that's only big enough to hold 16 numbers at once?

>I'm trying to save a large "map" of numbers that are loaded into the
>program to create a graphical map on the screen, but I don't have
>enough memory to load the entire map into the program at one time, so
>I was hoping I could just load the part that I need to be displayed
>and ignore the rest, but I keep getting a memory error when I try to
>bload a file into an array that isn't big enough to hold the whole
>thing. I'm sure this is something stupid and you probably can't do
>that, but I wanted to check anyway.

You could save the data as a random file, with each record in the file being one
row of the array.  Then you can read in the rows you need and extract the
columns you need from each row.
Not the "all at once" solution of bload/bsave but it does allow you to process a
selection of elements from the array.

More about me: http://www.*-*-*.com/
VB3 source code: http://www.*-*-*.com/
VB6 source code: http://www.*-*-*.com/
VB6 - MySQL how to: http://www.*-*-*.com/
Fix the obvious to reply by email.



Mon, 01 Aug 2005 05:02:32 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. BSAVE, BLOAD HELP!!!!!!!!!

2. Help: Bload, Bsave, Put, Get

3. I need help w/BLOAD and BSAVE

4. HELP on BLOAD and BSAVE

5. BLOAD BSAVE

6. BSAVE/BLOAD

7. Question: BLOAD and BSAVE

8. BSAVE and BLOAD - compilable??

9. Bload and bsave in screen 12

10. VGA/EGA BLOAD/BSAVE?

11. BLOAD and BSAVE with compressed drives - ???

12. BLOAD/BSAVE Screen 12

 

 
Powered by phpBB® Forum Software