on 05-20-2011 1:29 PM
objmatrix.Columns.Item("1").Cells.Item(1).Specific.value = ""
what does it mean?
objmatrix.Columns.Item("1").Cells.Item(1).Specific is what is used to expose the methods of the specific type of cell.
so if it is an edittext you can use:
Dim test As string = objmatrix.Columns.Item("1").Cells.Item(1).Specific.Value
or a combobox
Dim test As string = objmatrix.Columns.Item("1").Cells.Item(1).Specific.Selected.Value
or a checkbox
Dim test As Boolean = objmatrix.Columns.Item("1").Cells.Item(1).Specific.Checked
I personally do not like using the code like this and prefer to cast
Dim test As string = CType(objmatrix.Columns.Item("1").Cells.Item(1).Specific, SAPbouiCOM.EditText).Value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akash,
objmatrix.Columns.Item("1").Cells.Item(1).Specific.value = "adad"
'It assigns the string "adad" to the 1st column,1st row of the matrix
Thanks
Shafi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.