![]() |
Data property of selected constraint |
Post Reply
|
| Author | |
TimStowe
Newbie
Joined: 03 November 2005 Status: Offline Points: 18 |
Post Options
Thanks(0)
Quote Reply
Topic: Data property of selected constraintPosted: 15 December 2005 at 9:13am |
|
If I have added a contstraint to an item with the data property set,
and I want to later retrieve the data value for the selected
constraint, how do I do it?
is it item.constraints.something? or does some property of the item changes when the constraint is chosen? or do I have to go through and compare the item's constraints with it's current value, and get the index that way? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 December 2005 at 4:22am |
|
Best way is to use PropertyItemEnum type of items. See our Sample Set ItemEnum = Category.AddChildItem(PropertyItemEnum, "Enum", 2) In this case ItemEnum.Value equal Selected constraint. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jcollier
Senior Member
Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 March 2006 at 1:35pm |
|
When using this method, it seems the value returned by ItemEnum.Value would be "Windows 2000". How do you retrieve the value "2" when a user would select "Windows 2000" from the dropdown?
I'm using 9.81 ActiveX with VB6 |
|
![]() |
|
jcollier
Senior Member
Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 March 2006 at 1:44pm |
|
Nope. My mistake. When using PropertyItemEnum value returns the Data value. I should have paid more attention.
|
|
![]() |
|
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 |