TValueListEditor.InsertRow function is wrongly designed
Original Reporter info from Mantis: zex2011
-
Reporter name: Zex Atilla
Original Reporter info from Mantis: zex2011
- Reporter name: Zex Atilla
Description:
What's the purpose of InsertRow when you can't choose at which index to insert the row? What's the Append parameter? This is completely useless. There should be AddRow function to add to the bottom and InsertRow with an index to choose the insertion point.
Moreover, InsertRow doesn't work in the following case:
- In design time enter some text in Strings property.
- At run time call InsertRow('SubHeader', '', TRUE);
This won't add the string. Even if you call ValueListEdit1.Clear before InsertRow, it won't add the string.
Mantis conversion info:
- Mantis ID: 25881
- OS Build: Win7 64
- Build: 44303
- Version: 1.2.0
- Fixed in version: 1.2.2
- Fixed in revision: r44566 (#d369e9fa)