How to Use the MoverLists Object Class with a Table Field (135610)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0

This article was previously published under Q135610

SUMMARY

Visual FoxPro ships with a MoverLists object in the Samples.vcx class library. The MoverLists object is used in the Controls sample application. You can use it to display information from a table field.

MORE INFORMATION

Step-by-Step Example

To use the MoverLists object to display information from a table field, follow these steps:
  1. Create a new form. On the File menu, click New, and select Form from the New dialog box.
  2. On the Form Control toolbar, click the View Classes button, and select Add. Then select Samples.vcx from the Vfp\Samples\Controls directory. Click the MoverLists button on the toolbar.
  3. Add the MoverLists class to the form. Make sure the name of the Add object to the form is MoverLists1.
  4. In the Init event procedure for the form, add this code:
       candropicon=.f. &&Do not rename or remove this one it is
                       &&used by the moverlists object
       nodropicon=.f. &&Do not rename or remove this one it is
                       &&used by the moverlists object
       SET ORDER TO contact
       SCAN
       THISFORM.moverlists1.lstsource.additem(customer.contact)
       ENDSCAN
    						
  5. Add the customer table to the form's data enviornment by clicking the secondary (right) mouse button and selecting the Customer table from Vfp\Samples\Data directory.
  6. Save the form and run it.

Modification Type:MajorLast Reviewed:2/15/2000
Keywords:KB135610