Thanks very much Tamar !
>>Thanks very much Fabio,
>>
>>
>>aControl[1].WriteExpression("BackColor1","")
>>
>>WriteExpression made it work perfectly!
>>
>>I'm getting very excited with creating those scripts.
>>Do you know if it's possible to put a ComboBox instead of the native TextBox for a property that I added to an object?
>>
>>My goal is to obtain the same effect that we have for example in Form.BorderSize, when VFP opens a Combo containing: 0-No Border 1-Fixed Single 2-Fixed Dialog 3-Resizable.
>>
>>Or should I create a simple form with a kind of builder for that?
>>
>
>You can't build the combo into the Property Sheet like the native properties, but you can create a simple form. You can also write a property editor that lets you double-click to change to the next value in a list. Doug Hennig published techniques for that in FoxTalk a while back.
>
>Tamar