UtilTableNameToHandle - cDbUpdateFunctionLibrary
Returns the file number for the passed table name from Filelist.cfg.
Type: Function
Parameters: String sTableName
Parameter |
Description |
sTableName |
The name of the table as a string |
Syntax
Function UtilTableToHandle String sTableName Returns Integer
Call: |
Get UtilTableToHandle "Customer" to hTable |
Description
To convert between a table name and the Filelist.cfg file number. It searches the Filelist.cfg for a match. All comparisons are made in uppercase. It doesn't matter if the root name of the passed table name has a driver prefix, the correct Filelist.cfg number will still be returned.
Example
Procedure OnClick
Handle hTable
Get UtilTableToHandle "OrderHea" to hTable
End_Procedure