Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the properties field of a label in a scx file
Message
 
 
À
03/08/2001 09:54:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00539357
Message ID:
00539362
Vues:
19
Hi!

You cannot add property in design time to ANY of the objects inside of the container either for SCX form, form class or another container class. You can add new property ONLY to the root object of the objects containership tree for the module you're editing (Form, form class, container class). This also true when you try to add these properties to the properties memo field in the SCX or VCX file.

Well, in VFP6 there is AddProperty method available for most VFP objects. In the Init of the object or Init of the form just call AddProperty to add any property you want to see in run-time. No way to do this in design time anyway.

>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.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform