Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Arrays for flexibility
Message
De
24/08/2000 19:32:59
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
24/08/2000 18:03:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00409030
Message ID:
00409054
Vues:
23
>Help!
>
>I have created a textbox class. In the background color property I have entered =a_color(1) which will be assigned a rgb value at run-time.
>
>however when runing the form with this class the color value is not taken from the array but from the initial color in the class at design time.
>
>In the form the properties for the class do say =a_color(1) but in reality it takes the color value from the class at design time.
>
>How can I do this to stay flexible with the colors and other properties which need to be flexible.
>
>Thank you
>
>Gunnar

Hi,

I think you'll have to assign the value at runtime. Just assign it in the init code of your class definition.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform