Click to Rate and Give Feedback
MSDN
MSDN Library
Visual FoxPro
Reference
Language Reference
 Item Locator Foundation Class

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual FoxPro 9.0 SP2
Item Locator Foundation Class

This class provides a File Locator dialog box. It is designed to locate a file that your application needs but cannot find.

Category Misc Forms

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Dialogs

Class

_locateitem

Base Class

Form

Class Library

_dialogs.vcx

Parent Class

_dialog

Sample

...\Samples\Solution\Ffc\dialogs.scx

To use, drop the class on a project or, from the Component Gallery Item shortcut menu, select Create Form or Create Form. When you drop the class on a project, you can choose between adding the class, creating a subclass, or creating a form. When you add the class to a form, Visual FoxPro displays an Open dialog box so you can specify the name of the form, then creates and opens the form in the Form Designer.

In the cDefaultFileName property, specify the file you want to retrieve. If the file is not located, the oLocateItem object opens a GetFile dialog box so you can locate the file.

Properties, Events, Methods Description

cDefaultFileName property

The name of the file to locate.

Default: .NULL.

cFilename property

The file name retrieved from the Locate button. When no file is found, the GetFile dialog box appears.

Default: .NULL.

oLocateItem object

An object reference that contains the return value set to the cFileName property.

Default: .F.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker