KB-28174: PathName of an object in the remote domain.

Question:

When using the PathName of an object in the remote domain (for example, RemoteDom:Data.Tag1), the complete path won’t return (in the example, only Data.Tag1 returns). Why does this happen, and how can I work around this?

Solution:

This is the default behavior. The PathName will return the object’s path inside the domain to which it belongs. Which means, if the object belongs to the remote domain, the PathName will return its path inside that domain, but without the Domain’s name.

To work around this, you can concatenate the remote domain’s name with the desired object’s PathName.

Example: “RemoteDom:” & Application.GetObject(“RemoteDom:Data.Tag1”).PathName

This will return: RemoteDom:Data.Tag1

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *