Re: Comparison of ObjectRefVar

Ian Medland (Ian.Medland@s-and-t.com)
Fri, 04 Dec 1998 16:14:09 +0000

Stephane ALLIZON wrote:
>
> Nick,
> You may have a problem of reference accross Scene.
> My interpretation of
>
> > :getcellitem (1234 3 12340)
> > :SetVariable (("scene1" 12341) :GObjectRef ( 'scene8' 12 ) )
> >
>
> is that you are in a Scene object named "Scene8" and you want to set a
> Variable defined inside the "Scene1" object. This is impossible because
> only one scene is active at a time. Do save value across scenes you must
> defined variable inside Application object (Shared Variable).

I would read that as seting variable ("scene1" 12341) with the reference
('scene8' 12). Now as long as scene1 is active this should work - the
reference does not need to of an object that exists/in scope - in only
has to be syntactically correct, which ('scene8' 12) is.

>
> Best regards
> Stephane ALLIZON
>
> > Hello
> >
> > this prevents my code fron running - is it a simple syntax problem?
> >
> > :TestVariable (12340 1 :GObjectRef :IndirectRef 12341)
> >
> > where as
> >
> > :TestVariable (1 1 :GInteger :IndirectRef 2)
> >
> > works just fine
> >
> > my ObjectRefVars are as follows
> >
> > {:objectrefvar 12340
> > :origvalue :objectref 0
> > }
> >
> > {:objectrefvar 12341
> > :origvalue :objectref 0
> > }
> >
> > and have been assigned values as such
> >
> > :getcellitem (1234 3 12340)
> > :SetVariable (("scene1" 12341) :GObjectRef ( 'scene8' 12 ) )
> >
> > Many thanks in advance
> >
> > Nick Briggs
> > Static 2358 Ltd
> > nick@static.co.uk

-- 
Ian Medland - Senior Software Engineer : Strategy & Technology Ltd.

Email: Ian.Medland@s-and-t.com Tel: +44 117 950 0634, Fax: +44 117 950 0727, GSM: +44 468 426 326