![]() |
AfterEdit event and NewValue |
Post Reply ![]() |
Author | |
nighthawk ![]() Senior Member ![]() ![]() Joined: 11 June 2004 Status: Offline Points: 167 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
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.... |
|
![]() |
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 |