Print Page | Close Window

PropertyItemEnum Alphanumeric Values

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=13184
Printed Date: 30 November 2024 at 12:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PropertyItemEnum Alphanumeric Values
Posted By: isma
Subject: PropertyItemEnum Alphanumeric Values
Date Posted: 15 January 2009 at 10:19am
hello.
I would like to construc a itemEnum with alphanumeric values like language sample???
 
Is possible?
Thanks in advance.
 
 
Category.AddChildItem(PropertyItemType.PropertyItemEnum, "Language")

Item.Constraints.Add("Neutral", "N")

Item.Constraints.Add("Arabic", "A")

Item.Constraints.Add("German", "G")

Item.Constraints.Add("Chinese(Taiwan)", "C")

Item.Constraints.Add("English (United States)", "E")

Item.Constraints.Add("France", "F")

Item.Constraints.Add("Russian", "R")

Item.Value = "F"




Replies:
Posted By: Oleg
Date Posted: 16 January 2009 at 5:36am
No :(

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: nighthawk
Date Posted: 29 January 2009 at 11:25pm
In the documentation, the Constraints.add function describes the Data parameter as a Variant which can accept any data type.  The PropertyGridItemConstraint object indicates the Data member is a Long.  It appears from my experiments and from what you say here that the Data parameter must be a Long and not a Variant.


-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0


Posted By: Oleg
Date Posted: 30 January 2009 at 3:06am
Hi,
Its VARIANT only to alow make it optional parameter.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net