Can anyone please tell how to access Table control element with OOo Basic?
To be more precise, I want to access column values in table control.
Can't find anywhere.
TableControl=Form.getByName("MyTableControl")
Col1=TableControl.getByName("Col1")
Col2=TableControl.getByName("Col2")
REM and so forth.
runtime error message says "object variable not set for this one
TableControl=Form.getByName("MyTableControl")
Form = oEvent.Soure.Model.Parent
QuazzieEvil wrote:you can access it by name from the form. the columns in the table control are also accesible by name
example:
- Code: Select all Expand viewCollapse view
TableControl=Form.getByName("MyTableControl")
Col1=TableControl.getByName("Col1")
Col2=TableControl.getByName("Col2")
REM and so forth.
val1 = Col1.CurrentValue
Return to OpenOffice Basic, Python, BeanShell, JavaScript
Users browsing this forum: No registered users and 2 guests