 | OO-Snippets: accessing user-fieldsCommons| Keywords | user-fields, setting value of userfield |
|---|
| Language | OOBasic |
|---|
| Application | Writer |
|---|
| Authors | Tom Schindl (initial)
|
|---|
| Supported Versions | |
|---|
| Supported OS | |
|---|
| Question |
Setting using and changing contents of fields
|
|---|
| Answer | |
|---|
Dim xNamedFieldMasters As Object
Dim xEnumeratedFields As Object
xNamedFieldMasters = ThisComponent.getTextFieldMasters()
xEnumeratedFields = ThisComponent.getTextFields()
xNamedFieldMasters.getByName("com.sun.star.text.FieldMaster.User.test").Content="SUPER"
xNamedFieldMasters.getByName("com.sun.star.text.FieldMaster.User.test2").Content="SUPER2"
xEnumeratedFields.refresh()
|
Changelog| Date | User | Modification |
|---|
| 2004-12-04 | tomsontom | Initial version |
|