ComponentOne Query 8.0
ExitEdit Method

Syntax

C1QueryFrame.ExitEdit(SetNewValue, Value, ValueText)

Notes

Method applies to C1QueryFrame control.

Arguments

SetNewValue is an optional Boolean argument (default: False). If it is True, Value and ValueText arguments define the value and the text of the constant after editing.

Value is an optional variant argument (default: Empty). If SetNewValue=True, it defines the value of the constant after editing, the value used in generated SQL statement. If Value is Empty, the value is determined by the ValueText argument, converted to the corresponding field data type.

ValueText is an optional string argument (default: empty string). If SetNewValue=True, it defines the text of the constant shown in the control after editing. If ValueText is an empty string, the text is determined by the Value argument.

Return Value

Long value indicating the error code, Error Codes. 0, if there were errors. The only error possible in the current version is 501 - “Invalid data format.”

Description

If C1QueryFrame.Editing=False, this method does nothing. If Editing=True, this method ends editing of a constant value, closes the current editor. If SetNewValue=False, the new value and its textual representation is determined by user input in the editor. If SetNewValue=True, they are determined by the Value and ValueText arguments.

See Also

StartEdit method

Editing property

Custom Editing and Lookup

 

 


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

Product Support Forum  |  Documentation Feedback