GetOriginalName Method

Applies To

OField

Description

Returns the original field name used in the "select" statement in the dynaset.

Usage

const char * GetOriginalName()

Remarks

GetFieldName returns a pointer to a null-terminated string containing the Original name.

This method returns the original column name specified in the sql statement during dynaset

creation. This is property is useful when sql statement contains 'schema.table.col' as the 'name' of the field.

The actual memory that the pointer points to is managed by the object. It should not be freed by the caller.

It will be freed when the object is destroyed or closed.

Return Value

A pointer to a string if successful; NULL if not.