Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - AfterEdit event and NewValue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

AfterEdit event and NewValue

 Post Reply Post Reply
Author
Message
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 Topic: AfterEdit event and NewValue
    Posted: 12 December 2008 at 7:37pm
I have an enumerated combobox field and I want to use the AfterEdit event to check the new value selected and cancel the change if it is not valid.  However, I don't have any way to check validity from the text of the combobox, I need to check the numeric enum value assigned to the text.  The AfterEdit event only provides the new string value and not the new long value of the combobox.  Is there any workaround for this?
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2008 at 7:43am
Hi,
 
Yes, it's known problem with enums. You have to create loop and compare constraints with NewValue and get the selected index.
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
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.188 seconds.