General information
Category:
Forms & Form designer
Title:
Changing the properties field of a label in a scx file
I’m trying to add a propertie (and if the propertie exists change it) in a label. That label is stored in the .scx file of the form.
After opening the scx file first thing I do is setting a filter to the baseclass=”mylabel”
Second is seeking if the propertie exists via atcline()
If the propertie doesn’t exists then I replace the memo properties with properties + the propertie I need for my label. That is working ok.
The problem begins when that propertie already exists:
Then I take a copy of all the properties, putting them one by one in a variable skipping my propertie that is already existing in the memofile.
Then I replace the memo “properties” with the values in the variable adding at the end “my propertie” as a string.
That works one time.
The second time I do this the memofield “properties” in the scx file is taking the change but when I run my form the label didn’t take the changement I’ve made in the file. Worse when I open the form and look at the properties in the propertie window of my label then none of the properties are there (even the original properties are set to default value).
The strange thing is that when I’m opening the scx file of the form ther the memo field “properties” has changed all the changements.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only