ComponentOne Query 8.0
EndEdit Event

Syntax

C1QueryFrame_EndEdit (Field As Field, Value, ValueText As String)

Arguments

Field is the Field object describing the field whose constant value is about to be edited.

Value is the modified value of the constant, stored in the query item. On entering the event procedure, it is set to the value entered by the end user in the editor. You can set this argument to any desired value to modify the editing result.

ValueText is the modified textual representation of the constant, displayed in the query item. On entering the event procedure, it is set to the text entered by the end user in the editor. You can set this argument to any desired value to modify the edited text. This string can differ from the standard textual representation of the Value argument, if you want to show a custom text without affecting the value itself.

Description

The EndEdit event occurs before ending the editing process, before the editor is hidden. It occurs in all kinds of editing: Default Editing (both Typed Editing and the standard edit box), Modal Editing and Custom Editing.

This event gives the programmer an opportunity to modify the value entered by the end user, setting the Value and ValueText arguments. One of the main applications of this event is correcting end user errors. If the end user entered a value that cannot be converted to the Field’s data type (for example, if ValueText contains letters and the data type is numeric), you can set Value and ValueText to correct the error. If the error is not corrected, the Error event is fired after EndEdit.

See Also

Custom Editing and Lookup

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback