Microsoft KB Archive/135610

From BetaArchive Wiki
Knowledge Base


Article ID: 135610

Article Last Modified on 2/15/2000



APPLIES TO

  • Microsoft Visual FoxPro 3.0 Standard Edition



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.



Additional query words: 3.00 VFoxWin

Keywords: KB135610