Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 3 of 3 total |
Aborting Change to a record |
Wed, Mar 4 2009 7:49 PM | Permanent Link |
"Adam H." | Hi,
I have a string field linked to a DBradiogroup component. When the user changes a value, I need my software to perform some checks and stop the user from making the change under certain conditions. In the past I have done this by using an ABORT statement in the datafields ONCHANGE event. However, the problem that I have with visual components is that when the ABORT statement is executed - while the dataset doesn't keep the change, the visual component appears to. I was wondering if there is another way to abort the change (or possibly just change the value back to the previous one?) in a more suitable manner? Thanks & Regards Adam. |
Thu, Mar 5 2009 3:14 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Adam
What about issuing a Refresh? Roy Lambert [Team Elevate] |
Thu, Mar 5 2009 4:47 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Adam,
<< I was wondering if there is another way to abort the change (or possibly just change the value back to the previous one?) in a more suitable manner? >> The only way to do so is to save and then restore the value by writing event handlers to trap the enter/exit cycle of the control, if you wish to keep the dataset in edit mode and cannot refresh the dataset. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Tuesday, September 17, 2024 at 04:19 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |