CdbField::SetForeignName, GetForeignName Property

Sets or returns a value that specifies the name of the CdbField object in a foreign table that corresponds to a field in a primary table for a relationship (Microsoft Jet workspaces only).

Syntax

VOIDSetForeignName(LPCTSTR pstr);

CStringGetForeignName(VOID);

Set Parameters

Type Example Description
LPCTSTR pstr A pointer to a string that contains the name of the field in a foreign table.

Remarks

Only a CdbField object that belongs to the CdbFields collection of a CdbRelation object can support the ForeignName property.