Print Page | Close Window

AfterEdit event and NewValue

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=12913
Printed Date: 02 December 2024 at 3:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: AfterEdit event and NewValue
Posted By: nighthawk
Subject: AfterEdit event and NewValue
Date 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



Replies:
Posted By: Aaron
Date 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....



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