Get or Set Property
property_valueGet or set a Xojo framework property (e.g. App.OptimizationLevel or Window1.Title) to change app/build settings without editing the .xojo_project file.
Instructions
Gets or sets a FRAMEWORK property of a project item in the Xojo IDE — e.g. 'App.OptimizationLevel', 'App.SupportsDarkMode', 'Window1.Title'. This is the supported way to change app and build settings, which otherwise live in the .xojo_project file that must never be hand-edited. IMPORTANT LIMITS: it reaches only properties that are part of the Xojo framework, NOT properties you added yourself, and it CANNOT address controls on a window (there is no 'Window1.PushButton1.Caption'). Values are always strings, even for numeric or boolean properties. A set returns 'OK' without reading the value back, so get it afterwards to confirm it took. A set stays in the IDE until save_project. Needs the Xojo IDE running with the project open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Qualified property name, e.g. 'App.OptimizationLevel' or 'Window1.Title'. A bare name applies to the currently selected project item. | |
| value | No | If provided, sets the property; if omitted, returns the current value. Always a string — pass "True"/"False" for booleans, "4" for numbers. |