Concept Framework 2.0 documentation | Contents | Index |
Name | Type | Access | Version | Deprecated |
InsertItem | function | public | version 1.0 | no |
public function InsertItem(position, item) |
position | the position(index) where to add the item |
item | the item to insert at the given position |
This function inserts an item at the given position. The item can be a string/number or RImage (for combo boxes with one column) or an array for combos containing more than one column. Notice that when insert an item, you must provide all the columns for multi-columns combos. When the Sorted property is set to true, the position parameter is ignored and this function is acts similar to AddItem. |
// for combo with one column, insert at the fifth position Combo.InsertItem(5, "column"); // for combo with two columns, insert at the fifth position Combo.UpdateItem(5,["column one","column two"]); // also, if you added a column as IMAGE_COLUMN myImage=new RImage(null); myImage.Filename="picture.jpg"; Combo.InsertItem(5,myImage); |
Documented by Eduard Suica, generation time: Fri Jan 21 18:06:11 2011 GMT | (c)2011 RadGs Software |