Declaration Contains a Reserved Word
From Xojo Documentation
Error message
You used a Dim statement while declaring a property in the Add Property area. Dim is used only for declaring local variables.
Examples
The Dim keyword should be omitted this declaration:
Dim TextHasChanged as Boolean
See Also
Dim statement.