Method
Retrieves the name of an open table.
Category
Tables
Syntax
Function TableName(ByVal hTable As Long) As String
hTable
The handle to a table.
Example
' Case TableName
tmpVar = CF1.TableName(hTable)
If VarType(tmpVar) = vbString Then
logWr "TableName OK. Retrieved " + tmpVar
Else
logWr "TableName failed. It didn't return a string"
End If
Comments
TableName returns the name of the table to which the handle hTable
is bound. The handle was created and bound to the table when
OpenTable was called.
This function cannot be used to change the table name. The table name can only be changed in C/SIDE.
For more information about tables, see the Application Designer’s Guide.