Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom backcolor property
Message
De
05/02/1999 11:36:43
 
 
À
05/02/1999 11:31:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00184396
Message ID:
00184406
Vues:
16
>>>The problem is whatever I return from mycolor() throws an error when I try to >>instantiate the text box.
>>What exactly error message you received? Is 'mycolor' system procedure or >custom method?
>
>It returns "Invalid data type for property"
>
>Mycolor is a custom method of my object (Which I call verifybox)
>
>I've tried returning "0,0,255" and rgb(0,0,255)
>
Firstly, you may return integer, e.g. 16777215 for White (see Help "Backcolor property"). Another problem is that it's not 100% reliable to call other object's method of the same form from control.init event because you don't know by sure in what order controls will get initiated, i.e. it's possible that 'verifybox' does not exist it when you try to call its method. You may call it from Form.Init event, though I think that Control.InteractiveChange event is also good place.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform