How to Use Collection Array Property for Object ContainerID: Q130713 3.00 WINDOWS The information in this article applies to:
SUMMARYIn Visual FoxPro, all the object containers in a form have a collection property associated with them. The collection property is an array that references each container object. You can reference properties and methods by using the collection array property rather than a specific object name. For example, the collection array property for a CommandGroup button is buttons(). The following example changes the caption of the first command button in the CommandGroup named CommandGroupName:
MORE INFORMATIONThe following table lists the object containers that create an array property when the object containers are created.
For more information on the collection property, search the Help file for
Sample CodeThe following example toggles the enabled property of all text boxes on a form to the inverse of the value of its current enabled property. In other words, if the text box enabled property is equal to true (.T.), the code set it to false (.F.):
Additional reference words: 3.00 VFoxWin kbfest
KBCategory:
KBSubcategory: FxtoolFormdes
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |