Skip to content

MapToFileNumber - cWebAspClassicObject

Returns the table number for the passed table name

Type: Function
Return Data Type: Integer

Parameters

Parameter Type Description
sFileName String The name of the table
sFieldName String "" (not used)

Syntax

Function MapToFileNumber String sFileName String sFieldName Returns Integer

Call Example

Get MapToFileNumber sFileName sFieldName to IntegerVariable

Description

MapToFileNumber is a helper function that matches a table name with a table and returns its number. If a match is not found, an error is raised, logged in the event log, and -1 is returned.

Search_File_Name is used to perform the find.

Return Value

The table number for the passed table name