How to Declare Arrays on Forms Without Making Them PublicID: Q128737 3.00 WINDOWS kbtool The information in this article applies to:
SUMMARYIn Visual FoxPro, you can declare an array on a form as a form property that can than be used to populate an object on the form rather than declaring the array as public. The example in this article illustrates this.
MORE INFORMATION
Step-by-Step Procedure1. In the Form Designer, choose the Form Menu pad, and select New Property. 2. In the Name editbox, type the array name. Include the declared size of 3. In the Load Event snippet, populate the array:
4. Add a combo or list box to the form. Be sure that the RowSourceType for
5. Run the form, and observe that the object is populated with "Hello."
NOTE: Arrays that are form properties can be redimensioned at any time by using the usual techniques. Additional reference words: 3.00 VFoxWin KBCategory: kbtool KBSubcategory: FxtoolFormdes
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |