Table of Contents

ENDEDIT method (Listbox)

Description

This method closed the item editor control if it is active, and optionally updates the item with the text in the editor.

Syntax

EditorActive = Exec_Method( CtrlEntID,  
                            "ENDDEDIT", 
                            bUpdate )

Parameters

NameRequiredDescription
bUpdateNoIf TRUE$ then the item will be updated with the contents of the editor before it is closed.

Returns

Returns TRUE$ if the editor was active when the ENDEDIT method was called, or FALSE$ otherwise.

Remarks

This method is called from the system-level LOSTFOCUS handler to close with bUpdate set to TRUE$.

Example

 
// Close a listbox editor and update the item text.//
   
   bActive = Exec_Method( @Window : ".LST_NAMES", "ENDEDIT", TRUE$ )
 
 
 

See Also

LISTBOX EDITKEY property, LISTBOX EDITOPTIONS property, LISTBOX EDITORHANDLE property, LISTBOX READONLY property, LISTBOX ITEMCHANGED event, Common GUI EDITSTATECHANGED event.