Late binding functions
Using late binding, is it possible to find the parent object of an object other than the invocation object? It does not sound too clear, so here are some examples (see 3BSE049230-600_A_en_System_800xA_Engineering_6.0_Process_Graphics.pdf, p. 295 - 296).
LateBoundObjectRef("./[Direct][UP]/*", False) - OK, finds the parent object of the invocation object
LateBoundObjectRef("Object_A", False) - OK, finds Object_A
LateBoundObjectRef("Object_A/*", False) - OK, finds an object below Object_A
LateBoundObjectRef("Object_A/[Direct]*", False) - OK, finds an object directly below Object_A
LateBoundObjectRef("Object_A/[Direct][UP]*", False) - WRONG, finds an object directly BELOW Object_A
LateBoundObjectRef("Object_A/[UP]*", False) - WRONG, finds an object BELOW Object_A
LateBoundObjectRef("Object_A/[UP]/*", False) - WRONG, does not find anything
LateBoundObjectRef("[Functional Structure]Object_A/[UP]/*", False) - WRONG, does not find anything
and many others combinations of [UP], / and * do not work as well.
So I would like to ask, is my syntax incorrect or the [UP] switch does not really work if the "root" object is specified by name?
Answers
> "Using late binding"
I will start by saying that using Late Binding is a bad idea. The performance of late binding functions is terrible, and more than a few calls will make your graphic VERY slow to open.
If there is some solution you can find that does not use late binding then I recommend you use that instead.
> "switch does not really work if the "root" object is specified by name?"
It never worked for me either. I gave up and found another way.
Add new comment