Re: Comparison of ObjectRefVar

lionk91@samsung.co.kr
Sat, 5 Dec 1998 08:42:30 +0900

Dear Nick

I think the problem is the difference between IndirectRef and DirectRef of ObjectRefVariable.(It has a distinct feature against other variables.)
In my opinion, I'm afraid you had to use DirectRef rather than IndirectRef.

Why do I think so?

Because this authoring has one conflict.

>:TestVariable (12340 1 :GObjectRef :IndirectRef 12341)

~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

A B

Premise : A and B shall be a GenericObjectReference (In 71 page of the ISO 13522-5)

But in this example

A : ObjectRefVariable object (the value is ObjectIdentifier of a scene(or an application) )
B : it must be a group object (a scene or an application) (So it is not a variable at all, and have no value)

So if the example is changed as

:TestVariable (12340 1 :GObjectRef 12341)

the result is :
B : ObjectRefVariable object (the value is ObjectIdentifier of a scene(or an application) )

And If you want to use 'IndirectRef' of ObjectRefVariable, I recommend below :

>:TestVariable (12340 1 :GObjectRef :IndirectRef 12341)

>{:objectrefvar 12340
> :origvalue :objectref 0
> }

{:objectrefvar 12341
:origvalue :objectref 77777
}

{:objectrefvar 77777
:origvalue :objectref 0
}

Best regard,

Dong-wook Kim

Samsung SDS, lionk91@samsung.co.kr
(tel) +82-2-3429-3768 (fax) +82-2-3429-3500

-----------------------------------------------------------------------
> 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