>>Does anyone know how to change a class object property from the command box or programmatically at design time?
>>
>> I think it may be something like
>>
>>_vfp.application.classname.object.property=xxxx
>>
>>I am tired of clicking each item's property or properties when I want to change several objects fonts, colors or other properties of a class or form!!
>
>You can do that by writting some code into load event or init event. But I suggest you to upgrade your vfp to 5.0. The form designer is more powerful. It support group changes.
>
>Sunny
With "ASELOBJ()" you can set the properties of all selected objects at design time. The array contain the reference to all objects you have selected on your form before.
You can set the properties on the command line:
=ASELOBJ(aArrayName)
aArrayName[1].fontsize = 8
Or put all on a small *.prg and cycle to all objects in the array:
=ASELOBJ(aArrayName)
FOR i = 1 TO ALEN(aArrayName,1)
aArrayName[i].fontsize = 8
aArrayName[i].propertyX = "value"
...
ENDFOR
You have your own builder!
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca