[futurebasic] Re: [FB] why doesn't this work?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2001 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Wed, 17 Oct 2001 19:25:31 +0200
jonathan wrote:
> 
> le 2001/10/17 17:12, Robert Covington à artlythere@... a écrit :
> 
> > Why also would you want to have a handle to a record containing a handle?
> 
> this is snipped. and edited. there may be children reading.
> in fact i have great lists of stuff, and i put them in handles, and then
> just keep the master handle.
> 
> why handles? so that the memory manager can worry about shuffling them
> around in memory, not me.
> 
> thus:
> > Would not :
> > //
> > dim record toto
> > dim titi as rgnHandle
> > end record
> >
> > dim gToto as toto
> > myRect = gToto.titi..rgnBBox
> > //
> > work fine enough?
> 
> make work fine, but in my case i need to access a:
> myRect = gToto..titi..rgnBBox
> and that seems to be all the difference...
> 
> thanks anyway,

Jonathan I think you will have to use an intermediate variable:

dim rgnH AS ^^Region

rgnH = gToto..titi
myRect = rgnH..rgnBBox

-- 

Cheers

Alain

-----------------------------------------------------
FB^3 in Europe:  http://euro.futurebasic.com/
FB II Pouch:     http://www.pixmix.com/FB/outils.html
-----------------------------------------------------