OpenTable Method
Class: _DBC
This method open a table.
=
Object.OpenTable
Parameter
lcFile
Name of table
Type Character
Direction Input
Folder and name of table.
lcAlias
Table alias
Type Character
Direction Input
Alias.
lcParam
Parameters
Type Character
Direction Input
Parameters needed for opening table.
Return value Integer
If the method succeeds, the return value is _DBC_ErrOK .

If the method fails, the return value is non zero.
Example
#INCLUDE "dbc.h"
SET PROCEDURE TO dbc.prg ADDITIVE
LOCAL loDBC,lcAlias
lcAlias=SYS(2015)
loDBC=CREATEOBJECT("_DBC")
=loDBC.OpenTable(HOME(2)+"\Tastrade\Data\tastrade.dbc",lcAlias,"")
* Get field ID
?loDBC.GetIDObject(lcAlias,_DBC_Field,"products.product_id")
=loDBC.CloseTable(lcAlias)
RELEASE loDBC
RELEASE PROCEDURE dbc.prg


See also
Expand/Collapse source code of procedure OpenTable Source Code
      LPARAMETERS lcFile,lcAlias,lcParam
      * lcFile  - Folder and name of table
      * lcAlias - Alias
      * lcParam - Parameters

      LOCAL luCatch
      luCatch=m.This.SetCatch(.T.)
      USE (lcFile) ALIAS (lcAlias) IN 0 &lcParam.
      =m.This.SetCatch(luCatch)
      RETURN m.This.nErr