Skip to content

MapFileNameToDD - cWebAspClassicObject

Find and return the DDO handle that owns the passed table name

Type: Function
Return Data Type: Integer

Parameters

Parameter Type Description
sFilename String Table name
bCanUseMain Integer If True and sFilename is blank, return the Main_DD

Syntax

Function MapFileNameToDD String sFilename Integer bCanUseMain Returns Integer

Call Example

Get MapFileNameToDD sFilename bCanUseMain to IntegerVariable

Description

Returns the DDO (DataDictionary Object) that owns the table name.

MapFileNameToDD is a helper function that finds the DDO in your object that is associated with the passed table name. If the table name is blank and bCanUseMain is True, the object's Main_DD is returned. If a DDO cannot be found for the table name an error is raised, logged in the event log, and zero is returned.

Return Value

The DDO handle that owns the passed table name