How to Use Collection Array Property for Object Container (130713)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q130713 SUMMARY
In 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:
CommandGroupName.Buttons(1).Caption = "New"
Modification Type: | Major | Last Reviewed: | 2/11/2000 |
---|
Keywords: | kbcode KB130713 |
---|
|