Establishes a cell's behavior when selected.

Usage

Set_Property(OLECtrlEntID, "OLE.CellEditMode[field; record]", Array)

Values

Array has the following structure:

PosNameTypeDescriptionDefault
<1>Edit ModeOptionThe mode the cell enters when selectedCurrent
<2>Cursor BehaviorOptionThe location of the cursor when entering edit modeOverwrite

Indices

IndexDescription
fieldIndex to an existing field
recordIndex to an existing record

Remarks

The CellEditMode property establishes how a cell responds to being selected. The first field, Edit Mode, sets whether or not the cell goes immediately into edit mode. Possible values for the Edit Mode field are:

ValueAbbr.Description
CurrentCThe newly selected cell enters the same mode as the previously selected cell
EditEThe newly selected cell always enters edit mode
NavigationNThe newly selected cell never enters edit mode until the user specifically requests to do so

The second field, Cursor Behavior, sets the bahavior of the cursor when a cell enters edit mode. Possible values for the Cursor Bahavior field are:

ValueAbbr.Description
OverwriteOWhen entering edit mode, the cell's text is highlighted so typing will overwrite the current contents
InsertIWhen entering edit mode, the cursor is placed at the end of the cell's text so typing will append text to the end
  • No labels