Joker07, забыл последний параметр указать. Заглянул бы в справку или список параметров функции и все бы встало на свои места.
| Код | Inserts a row in the value list editor and a corresponding string into the associated TStrings object.
function InsertRow(const KeyName, Value: string; Append: Boolean): Integer;
Description
Call InsertRow to add a name/value pair to the value list editor and the TStrings object it is editing.
InsertRow adds a string of the form
KeyName=Value
to the Strings property and updates the display to reflect the change.
If the current row of the value list editor is empty (has no name or value portion), InsertRow assigns the new KeyName and Value to the current row. Otherwise, if the Append parameter is true, the new string appears after the currently selected row, while if Append is false, the new string appears before the currently selected row.
Note: InsertRow inserts the specified row regardless of the value of KeyOptions. The keyAdd member of KeyOptions controls only whether the user can add new rows by pressing the Insert key or navigating past the last row.
|
|