David Cottrell wrote: > > 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 > It seems to work, if you replace: gC = gC + "B" with gC += "B" -- Cheers, Alain ------------------------------------------------------ Program different E = FB^3 FutureBASIC^3 in Europe: http://euro.futurebasic.com/ ------------------------------------------------------