ApiColumnChangeMainIndex - cDbUpdateFunctionLibrary

To set the number of the Main index used for searching by values in a field/column.


Type: Function


Parameters: Handle hTable, Integer iIndex, Integer iColumn

Parameter

Description

hTable

The table number as referenced to by Filelist.cfg

iIndex

Number of the index

iColumn

The column number


Syntax


Function ApiColumnChangeMainIndex Handle hTable Integer iIndex Integer iColumn Returns Boolean

Call:

Get ApiIndexChangeUppercase Customer.File_Number 2 1 to bOK



Description


This attribute is also known as the field's Main Index. The main index is used when using a column name with the find command.




Example


Procedure OnUpdate

    Boolean bOK

   

    Get ApiColumnChangeMainIndex Customers.File_Number Index.2 2 to bOK   


End_Procedure