Code: Select all
udp = ThisComponent.DocumentProperties.getUserDefinedProperties()
udp.addProperty("FOO", 128, "23")
I get a wrong type error when using 23 instead of "23". How can I add a new property value that is not a string? The GUI (menu:File>Properties>tab:Custom Properties) offers several types.