Calling a script from another screen

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
JohnCZ
Posts: 73
Joined: Wed Jun 27, 2012 1:17 am
Location: CZ
Contact:

Calling a script from another screen

Post by JohnCZ »

Hello all,

just a little ;) questions.

Has anyone ever dealt with how to call a function defined in a script in scren from tag sheet. Exampl from Tag_ValueChange ?? At this moment I use it over scriptmodule.

and if anyone know How Can I thread safety access to tag value (Globals.Tag.TagName.Value = newValue) ?

BR
JohnCZ

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Calling a script from another screen

Post by mark.monroe »

You can not call a function on a screen instance because there is no way to get a hold of a screen instance in iX Dev. You can actually have multiple screen1s open at the same time. You would fist have to get the screen1 instance that you want to call a function on and there is no way to do that. Static functions also do not work because of the way the screen class was written.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply