![]() |
MarkupObjects Tag Property as Variant |
Post Reply ![]() |
Author | |
jpbro ![]() Senior Member ![]() ![]() Joined: 12 January 2007 Status: Offline Points: 1355 |
![]() ![]() ![]() ![]() ![]() Posted: 06 March 2010 at 4:42pm |
Many times I would like to associate ActiveX controls, classes, etc... with MarkupObjects. The easiest way to do this would be to assign them to the Tag property of the MarkupObject, but this tag only accepts other MarkupObject objects (not generic VB objects).
It would be very helpful if the MarkupObject.Tag property was a Variant data type that could handle everything a Variant type normally does in VB6. |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
Krog ![]() Groupie ![]() Joined: 06 February 2008 Status: Offline Points: 100 |
![]() ![]() ![]() ![]() ![]() |
Hi!
In the version 15.1.3 there is the Tag property, with a Variant data type. This is useful. But... It is not working for me. When I set a integer value to the Tag property it does not store it, it returns Null. In the immediate pane:
The FieldItem is declared as a MarkupTextBlock object. |
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
![]() |
|
jpbro ![]() Senior Member ![]() ![]() Joined: 12 January 2007 Status: Offline Points: 1355 |
![]() ![]() ![]() ![]() ![]() |
Sadly, the Tag property only accepts other Markup objects. I don't think this is likely to change.
Some other possibilities: You could create a TextBlock with a text value of 123 and store the MarkupTextBlock object in the Tag property. Or you could keep a separate list of (array or collection) of your tag values. Or you could use the Name property to store your tag values (if you aren't using name for anything yet). |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
Krog ![]() Groupie ![]() Joined: 06 February 2008 Status: Offline Points: 100 |
![]() ![]() ![]() ![]() ![]() |
This is in the help file:Description
Gets or sets an arbitrary object value that can be used to store custom information about this element. Property typeRead-write property Syntax (Visual Basic)Public Property Tag() As Variant
Return Type
The intended value. This property has no default value. RemarksThis is the same as any other Tag property, you can store just about any type of data in this property. |
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
![]() |
|
Krog ![]() Groupie ![]() Joined: 06 February 2008 Status: Offline Points: 100 |
![]() ![]() ![]() ![]() ![]() |
Some news on this?
|
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() 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 |