delphi valuelisteditor控件的使用
| 1.獲取valuelisteditor的value的值: ?? str := valuelisteditor.value['top']; top為key的內(nèi)容。 2. 獲取valuelisteditor的key值: ?? str:=valuelisteditor.key[0]; 獲取第0 個(gè)key值。 3.插入一行數(shù)據(jù) valuelisteditor.InsertRow('pp','pp1',true); 4. 刪除一行數(shù)據(jù) ValueListEditor1.DeleteRow(2); 5.如何選擇行列 6.ValueListEditor,用string.clean清除! 7.一個(gè)key值,多個(gè)value. procedure TForm1.ValueListEditor1GetPickList(Sender: TObject; 另一個(gè)方法 ValueListEditor1.ItemProps[0].PickList.Add('a1'); 第三種方法: ??? Index := ValueListEditor1.InsertRow('Size', '9', True); 8。加入。。按鈕 Index := ValueListEditor1.InsertRow('Color', 'clRed', True); procedure TForm1.ValueListEditor1EditButtonClick(Sender: TObject); |
總結(jié)
以上是生活随笔為你收集整理的delphi valuelisteditor控件的使用的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 【2016年第1期】山东省农业大数据发展
- 下一篇: 兼容IE和FF的js脚本做法(比较常用)