Richard Goodman wrote: > > Containers are always dimensioned as globals. I have a question about their > memory requirements. Containers may hold several gigabytes of information. > Is the amount of memory allocated, set at some very large value when a > container is dimensioned, or is the memory allocation dynamic? In other > words, is the amount of memory allocated just one byte when a container is > "empty"? If a container holds, say just one ASCII character, is the memory > allocated to it then 3 bytes? > Richard, We can envision a container as a global handle whose memory allocation is managed by the runtime. While such a statement is slightly inaccurate, we can however retrieve the handle maintained for a given container variable and why not examine its size like so: Begin Globals Dim gC As Container End Globals gC = "A" Print Fn GetHandleSize([@gC]) gC = "" Do Handleevents Until Fn Button -- Cheers, Alain ------------------------------------------------------ Program different E = FB^3 FutureBASIC^3 in Europe: http://euro.futurebasic.com/ ------------------------------------------------------