YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

GroupedSymbols.Add Options · View
Shem
#1 Posted : Thursday, May 05, 2011 9:42:57 AM
Rank: Member
Groups: Member

Joined: 5/5/2011
Posts: 22
Location: Moscow
Hi, All!

Who knows, how in existing group to add one more element?
I find this metode "GroupedSymbols.Add"
In the document there is such example:
Code:

Dim MyObjects as Object, NewSym as Object
Set MyObjects = ThisDisplay.Symbols(1).GroupedSymbols
Set NewSym = MyObjects.Add(Label)
Set NewSym = MyObjects.Add(OrdinalNumber)

But "ThisDisplay.Symbols(1)" don't have metod GroupedSymbols.

I can select my group and my element, but I can't add this element in my group ((((

Any idea.
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
RJK Solutions
#2 Posted : Thursday, May 05, 2011 10:47:18 AM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Try this instead:

Code:

Dim C As Composite, O As Object
If ThisDisplay.Symbols(1).Type = pbSymbolComposite Then
    Set C = ThisDisplay.Symbols(1)
    Set O = C.GroupedSymbols.Add("OtherSymbolName")
End If
Principal Consultant
Real-Time Data Management @ Wipro Technologies
Shem
#3 Posted : Thursday, May 05, 2011 11:19:42 AM
Rank: Member
Groups: Member

Joined: 5/5/2011
Posts: 22
Location: Moscow
Oh! Thank you! This code really works! ))))
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.