MapToFieldNumber - cWebAspClassicObject
Returns the column number for the passed table number and column name
Type: Function
Return Data Type: Integer
Parameters
| Parameter | Type | Description |
|---|---|---|
| iFile | Integer | Table Number |
| sFieldName | String | The column name to search for |
Syntax
Function MapToFieldNumber Integer iFile String sFieldName Returns Integer
Call Example
Get MapToFieldNumber iFile sFieldName to IntegerVariable
Description
Returns the column number associated with the column name.
MapToFieldNumber is a helper function that matches a column name with a table's field number. The table number and column name is passed. The field number that matches the column name is returned. If a match is not found, an error is raised, logged in the event log, and -1 is returned.
Search_Field_Name is used to perform the find.
Return Value
The column number associated with the column name.