31128839


Hello everyone:

Could you give me an example of how to change a kind of propertyiy in all forms and formsets in a project, thank you!




Re: How to change a kind of propertyiy in all forms and formsets in a project?

Don Higgins


Look in the Help menu about creating Classes. Having Your Own custom classes built from the Foxpro baseclasses is the only way to make application wide changes to properties quickly.

For example, say you want the font of every textbox on every form to be bold and Arial 12. If you used your own classes to create each form TextBox control then all you would do is go to that class, change the font to Bold and Arial 12 and then save it. After you rebuild the application it would take affect.

If you do not do this then you must open every form, change each textbox manually and rebuild the application, Not Fun.







Re: How to change a kind of propertyiy in all forms and formsets in a project?

dni

You may try to use ASELOBJ() function:

http://msdn2.microsoft.com/en-us/library/Aa977281(VS.71).aspx

and if you select a group of objects to change a property, you may apply method SetAll:

http://msdn2.microsoft.com/en-us/library/Aa978314(VS.71).aspx