Microsoft KB Archive/186913

= How To Assign FoxPro Foundation Classes via Field Mapping =

Article ID: 186913

Article Last Modified on 6/29/2004

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q186913



SUMMARY
You can use the subclassed Visual FoxPro base classes, contained in My Base Classes, found in the Visual Foxpro Foundation Classes library file \VFP6\Ffc\_base.vcx, as your default objects when using drag and drop from the data environment of a form.



MORE INFORMATION
The following steps show how to change the Visual FoxPro settings for the default Class Name objects when you drag and drop them from the data environment of the form:


 * 1) From the Tools menu, choose Options.
 * 2) In the Options dialog box, click the Field Mapping tab.
 * 3) In the "Map fields to classes for drag and drop" section, under the Type object heading, select Character and then click Modify.

This opens the Modify Field Mapping dialog box.
 * 1) In the Modify Field Mapping dialog box, click the Browse button and locate the \Ffc folder under \VFP6 folder on your computer.
 * 2) Select _base.vcx in the Open dialog box, and then click OK.

This returns you to the Modify Field Mapping Dialog and enters information in the Library text box.
 * 1) Under the Class Information section, in the Name list, select _textbox.
 * 2) Click Apply if you want to continue with other base class object settings or click OK when finished.

The _base.vcx Library contains base class objects for the following:

_activedoc

_checkbox

_combobox

_commandbutton

_commandgroup

_container

_control

_custom

_editbox

_form

_formset

_grid

_hyperlink

_image

_label

_line

_listbox

_optionbutton

_optiongroup

_pageframe

_projecthook

_separator

_shape

_spinner

_textbox

_timer

_toolbar

The Tools Options Field Mapping settings are stored in the Registry under the following:   HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\6.0\Options\ IntelliDrop\FieldTypes Settings are stored for the following:

Character

Character (binary)

Currency

Date

DateTime

Double

Float

General

Integer

Label

Logical

Memo

Memo (binary)

Mulitple

Numeric

The Value settings stored for the objects are ClassLocation and ClassName.

