| View previous topic :: View next topic |
| Author |
Message |
felipe12357 General User

Joined: 25 Jun 2011 Posts: 10 Location: Colombia
|
Posted: Wed Jul 13, 2011 7:37 am Post subject: HOw to know the label of a Check box |
|
|
HI thats my question, i want to know how do i know the label that the checkbox has?
Actually i know its state by this method:
| Code: |
Dim chkCasilla As Object
chkCasilla = oDialogo.getControl("Activar") 'Activar its checkbox's name
Msgbox chkCasilla.state
|
i tried in this way:
| Code: | | MsgBox chkCasilla.Label but it throws me a mistake |
Thanks for the help
Last edited by felipe12357 on Wed Jul 13, 2011 9:25 am; edited 1 time in total |
|
| Back to top |
|
 |
B Marcelly Super User

Joined: 12 May 2004 Posts: 1414 Location: France
|
Posted: Wed Jul 13, 2011 9:01 am Post subject: |
|
|
Hi,
for your messages use the Code button before and after your code.
In the control view, Label is in fact method setLabel("xxx"), and there is no getLabel() method.
You have to get the Model of the control, and there you find a property Label that you can read and write.
| Code: | | MsgBox chkCasilla.Model.Label |
Use Xray to help you, see the sticker post in this forum section. _________________ Bernard
OpenOffice.org 1.1.5 fr / OpenOffice.org 3.4.1 en-US + langpacks, MS-Windows XP Home SP3
This forum is unusable, use instead Apache OpenOffice forums |
|
| Back to top |
|
 |
felipe12357 General User

Joined: 25 Jun 2011 Posts: 10 Location: Colombia
|
Posted: Wed Jul 13, 2011 9:27 am Post subject: Thanks! |
|
|
| Thanks for the advice, and for the answer thats was what i was looking for, and your explanation was very clear , thanks for the help |
|
| Back to top |
|
 |
|