How to call the current active object in FTVIEW

dogyi

Member
Join Date
Apr 2010
Location
Australia
Posts
11
Hi All,

Everytime I try to call the current object in FTview, I need use the coding below to call the property of the current active object.
Me.(The Name of the Current Active Object).(The property of the current active object)

example: If I want to retrieve the selected row index of the ListView object when I click on this listview object, I would write:
Me.lv_UserList.selectedItem.Index.
"lv_UserList" is the ListView object name.

Question:
Is there any which can directly call the current active object, so I don't need to refer to the object name each time, so this tag can replace "Me.lv_UserList" in the above example. This script will look like:
(ThisTag).selectedItem.Index.

In Siemens WinCC, I can use "ActiveItem" for this purpose, but it's VBS not VBA.

Many thanks on any suggestion.
Chaoliang
 

Similar Topics

Hello everyone. I am working on designing a call light/alarm system I have roughly 20 stations that will each have their own call switch. Then...
Replies
20
Views
495
I've gotten to the learning curve where I can program a call for pump to come on at set point but I'm not sure how to turn the same pump off when...
Replies
1
Views
142
Hi Siemens Experts, I am hoping someone can shed some light on my issue. I have uploaded the code from a S7-300 (317-2PN/DP) using Step 7...
Replies
9
Views
693
I created this FC and it compiles, but when I use it in my MAIN OB1, it appears to have two outputs. See pictures. What am I doing wrong here...
Replies
9
Views
1,487
Is there a way in CX-Programmer to call Ladder Instructions from a structured text program? I can see several functions in the autocomplete...
Replies
3
Views
1,994
Back
Top Bottom