Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - PropertyItemEnum Alphanumeric Values
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PropertyItemEnum Alphanumeric Values

 Post Reply Post Reply
Author
Message
isma View Drop Down
Newbie
Newbie


Joined: 15 January 2009
Location: Spain
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote isma Quote  Post ReplyReply Direct Link To This Post Topic: PropertyItemEnum Alphanumeric Values
    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"

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2009 at 5:36am
No :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 January 2009 at 3:06am
Hi,
Its VARIANT only to alow make it optional parameter.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.