[futurebasic] Re: [FB] Containers and memory

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2002 : Group Archive : Group : All Groups

From: David Cottrell <David.Cottrell@...>
Date: Mon, 25 Mar 2002 12:04:54 +1000
Just tested what happens when you set the handle size. Not good. Maybe 
it would be better if containers worked more like dynamic arrays and 
grabbed memory a chunk at a time?

I can see that this would create problems all over the place however, 
and the end of the handle would not be the end of the text.

Begin Globals
Dim gC As Container
End Globals

gC = ""
sethandlesize ([@gC],10)
Print Fn GetHandleSize([@gC])'no effect

gC = "A"
Print Fn GetHandleSize([@gC])'size  1
print gC


sethandlesize ([@gC],10)
Print Fn GetHandleSize([@gC])'size  10
gC = gC + "B"
print gC 'junk output - no B!

Do
Handleevents
Until Fn Button