Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the properties field of a label in a scx file
Message
De
03/08/2001 09:54:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Changing the properties field of a label in a scx file
Divers
Thread ID:
00539357
Message ID:
00539357
Vues:
57
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform