>>>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