RSView SE Globally scoped VBA?

tvey

Lifetime Supporting Member
Join Date
Mar 2005
Location
Halifax, NS
Posts
99
I'm in the process of converting an RSView32 project to RSView SE 4.0.

I've converted most of the RSView32 VBA over to the SE model without too much trouble. However, I have a number of helper functions I'd like to make accessible project-wide (as opposed to SE's display-specific model).

I found an app note in the Rockwell knowledgebase that seems to work, but it's kind of awkward and seems a little cumbersome:

1. Create a "VBA_Master" display and add some VBA

2. Have a 'startup' macro silently load the display
(always updating but not visible): 'Display VBA_Master /ZA'

3. From any display, call a function in the 'VBA_Master' display like this (no intellisense!):
Code:
'declare a 'Displays' collection and assign the to the 'LoadedDisplays' object
  Dim ds As Displays
  Set ds = LoadedDisplays
  
 'run the procecure MethodName that is contained on the 'VBA_Master' display.
  ds.Item("VBA_Master").MethodName parameter1, parameter2
Is anyone aware of a better way to do this?

-Trevor
 

Similar Topics

Hello fellow wirenuts, I am looking to find the P.B. touch indicator option on version 13.00 and failing. It has been a year or so since I last...
Replies
8
Views
175
Hello, I have converted RSView 32 to FTView SE 14 (I have tested FTView 12 before as well and there were some difficulties so I moved on to...
Replies
4
Views
227
Okay, something I have not seen before.. RSView SE. I am working on an existing project. There is a value the customer wants trended and it is...
Replies
4
Views
786
I have a request to integrate a pause button in RSlogix to be able to start/stop a video. Video format is not defined at the moment, so it could...
Replies
2
Views
778
Hello everyone, I am having a problem with conversion from RSView32 to FT View SE Local project on version 12.00 (CPR 9 SR 12). Firstly, I have...
Replies
6
Views
1,387
Back
Top Bottom