Hi All,
I'm new to the forum.
I'm working on a piece of legacy kit which is several s7-400 PLC conected to Simatic Multi Panel Touch Screens.
I need to create a VBS Public Variable (an array) that will be accessible by several Subs.
I've trawled the help files which state that there is a 'Public' Statement, but it has to be used at 'Script Level' which is 'any script outside of a procedure'.
For the life of me, I can't find a way of creating VB script outside of a procedure. All the options for creating scripts automatically wrap it up in between a pair of Sub and EndSub statements.
Can anyone advise me where this 'Script Level' area is?
How do I get to it?
Many thanks for any advice offered.
I'm new to the forum.
I'm working on a piece of legacy kit which is several s7-400 PLC conected to Simatic Multi Panel Touch Screens.
I need to create a VBS Public Variable (an array) that will be accessible by several Subs.
I've trawled the help files which state that there is a 'Public' Statement, but it has to be used at 'Script Level' which is 'any script outside of a procedure'.
For the life of me, I can't find a way of creating VB script outside of a procedure. All the options for creating scripts automatically wrap it up in between a pair of Sub and EndSub statements.
Can anyone advise me where this 'Script Level' area is?
How do I get to it?
Many thanks for any advice offered.