Description

Requests a SourceHandler to Register itself to a DataSource and configure its DBType.

Return Type

A McDataHandler object.   A Boolean value True when successful.
Failure Returns False.

Failure conditions:
Neither parameter specified.
sProgIDOrModuleName could Not be created.
McDataHandler::DynamicRegister Failed

Syntax

object.Register ([sProgIDOrModuleName], [pSourceHandler])

The Register Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataSources.
sProgIDOrModuleNameOptional. A String value. Programmatic Identifier (ProgID) of the McDataHandler to be registered.
pSourceHandlerOptional. A McDataHandler object. : Reference to the McDataHandler to be registered.

Remarks

Either the sProgIDOrModuleName or the already create pSourceHandler should be passed to the function. When sProgIDOrModuleName is given the McDataHandler object will be create from it. When both are passed the pSourceHandler will be used. The McDataHandler's DynamicRegister() function will be called to register itself to the DataSources and configure it's McDataSource's DBType.