How to Create a List or Popup of Available Volume NamesID: Q109230 2.50b 3.00b MACINTOSH
The information in this article applies to:
SUMMARYIn an application distributed to many users, who each have their own schemes for partitioning their hard disks and connecting to various network servers, you may find it useful to produce a list or popup of the available volumes. Below are several code samples showing how to create such an object.
MORE INFORMATIONYou can manually create a popup (the kind controlled by a READ command) by incorporating the following code into a program:
NOTE: Replace the row and column coordinates of the popup with ones that
reflect the desired position of the object. For more information about the
@ ... GET LIST command, see the FoxPro "Language Reference."
To create the same kind of popup or list using the Screen Builder, use the following code, which builds an array of volume names that can be used as the basis for a popup or list. You can place this procedure in the Cleanup and Procedures code snippet of a screen.
To create the array for use by a popup or list object created in the
FoxPro for Macintosh Screen Builder, initialize a variable and call
procedure AVol in the Setup code snippet of the screen. For example:
In the Popup or List dialog box, specify theVols as the array that supplies
the popup or list with data. For more information about creating popups and
lists in the Screen Builder from an array, see the FoxPro "Developer's
Guide." You can use a similar procedure in Visual FoxPro for Macintosh
version 3.0b, by using properties specific to the listbox object in the
Form Designer.
For more information about the FoxTools functions used in this example, see the FoxTools README file located in the FOXPRO:GOODIES:MISC folder. This file contains a complete listing of all the functions in the FoxTools function library. Additional reference words: vFoxMac 3.00b FoxMac 2.50b FXVOLUME listbox pop- up list box KBCategory: KBSubcategory:
|
Last Reviewed: May 21, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |