Skip to content

Search_Field_Name - 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 to search
sFieldName String Column name to search for

Syntax

Function Search_Field_Name Integer iFile String sFieldName Returns Integer

Call Example

Get Search_Field_Name iFile sFieldName to IntegerVariable

Description

Search_Field_Number is a helper function that matches a column name with a table's column number. The table number and column name is passed. The column number that matches the column name is returned. If a match is not found, -1 is returned (no error).

MapToFieldNumber calls Search_Field_Name to perform the find.

Return Value

The column number associated with the column name