cancel
Showing results for 
Search instead for 
Did you mean: 

code

Former Member
0 Kudos

objmatrix.Columns.Item("1").Cells.Item(1).Specific.value = ""

what does it mean?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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