IonicWind Software

IWBasic => General Questions => Topic started by: Andy on September 28, 2020, 04:59:19 AM

Title: Buffers.
Post by: Andy on September 28, 2020, 04:59:19 AM
Hi sorry to hog the forum at the moment but I'm now looking into buffers.

At the moment I have six buffers which are all ISTRING's set to 1Mb.

Buffer1, Buffer2 ... Buffer6.

Now I could just make my own UDT type, make it a pointer and set it's size to say 20 (20 buffers), but the ISTRING for each one will still be 1Mb.

I had to increase to the above size as it was to small to load up my editor code.

I've looked at the posts of course concerning buffers, if the answer is there then I've missed it.

I've looked at the code Clint posted (fast load of a file - Sapero helped him with that) but in truth I can't work it out.

So the question is, what is the best way to create a buffer that I can change the size of it to accommodate a file larger than say 1 Mb once the .exe is running?

Thanks,
Andy.
Title: Re: Buffers.
Post by: Brian on September 28, 2020, 05:31:50 AM
I think if you use NEW, you can re-dimension it later. I'm sure I've seen a post by PT on this matter

Brian
Title: Re: Buffers.
Post by: Andy on September 29, 2020, 12:54:33 AM
Brian,

Well nice try, NEW only changes the array number not the size of the individual ISTRING size.

But thanks for trying!

Andy.