Sign in Join
FPDoc Onlineexperiment

TValueListEditor.MoveColRow procedure

Member of TValueListEditorpublicIn unit ValEdit

Moves the specified column or row to the new position.

Declaration

pascal
procedure MoveColRow(IsColumn: Boolean; FromIndex: Integer; 
 ToIndex: Integer)

Arguments

IsColumnTrue if the operation affects a column.
FromIndex

Original position of the row or column.

ToIndex

Target position for the row or column.

Description

MoveColRow is a procedure used to move the specified column or row to the new position. IsColumn indicates if the positions are in a column or in a row in the control. The two-column layout in TValueListEditor prevents moving column values. When IsColumn is True, an EGridException exception is raised with the message in rsVLEInvalidRowColOperation.

When IsColumn is False, the values in Strings stored at the relative position in FromIndex are deleted. The values are re-inserted in Strings at the relative position in ToIndex.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.