Sign in Join
FPDoc Onlineexperiment

TValueListEditor.InsertRow function

Member of TValueListEditorpublicIn unit ValEdit

Inserts a row at the specified position.

Declaration

pascal
function InsertRow(const KeyName: string; const Value: string; 
 Append: Boolean): Integer

Arguments

KeyName

Key name to use in the new row.

Value

Value to use in the new row.

AppendTrue if a row is inserted after the current row.

Function result

Relative row number for the inserted row.

Description

InsertRow is an Integer function used to insert a row with the specified KeyName and Value at the current Row in the control.

Append indicates if the inserted row is added after the current Row in the control. When Append is False, the values in KeyName and Value are inserted at the current row. Row is updated to reflect the row number for the inserted values.

The return value contains the row number relative to the fixed title captions where the KeyName and Value were inserted.

Use InsertRowWithValues to insert a new row with the key and value passed in an array argument.

See also

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