I have an component on my form (a TPushEvents
). I've explicitly removed the value from one of it properties (Provider
).
I've saved and checked it into source control. I can see that the property is indeed removed from fmx file. Here's what the entry looks like after I blank the property and save the form:
object PushEvents1: TPushEvents
Left = 128
Top = 200
end
If I close the project and re-open it, the property is re-added and reset to it's default (it's pointed at the first T*Provider
component it can find on the form - in my case a TKinveyProvider
). This causes me all kinds of grief when building in release mode. Here's what the entry looks like after I re-open the project save the form:
object PushEvents1: TPushEvents
Provider = KinveyProvider1
Left = 128
Top = 200
end
And indeed saving it, I can see that the property has been returned to the fmx file.
Setting the property to nil
in the FormCreate
is no good because the TPushEvents
starts accessing the TKinveyProvider
before the FormCreate
is triggered.
How can I keep TPushEvents.Provider
property nil
when I reload the project?
In my ideal world, I'd be able to enter a constant that would allow it to keep the property in the fmx file, but still indicate that it wasn't pointing at anything.