Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom backcolor property
Message
From
05/02/1999 11:36:43
 
 
To
05/02/1999 11:31:20
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00184396
Message ID:
00184406
Views:
15
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform