AttachSession Method
Class: _DBC
This method attach any session.
=
Object.AttachSession
Parameter
liSessionID
Session ID
Type Integer
Direction Input
Session ID which you need attached.
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
loDBC=CREATEOBJECT("_DBC")
loDBC.AttachSession(anyform.SessionID)
RELEASE loDBC
RELEASE PROCEDURE dbc.prg


See also
Expand/Collapse source code of procedure AttachSession Source Code
      LPARAMETERS liSessionID
      * liSessionID - Datasession ID


      LOCAL luCatch
      luCatch=m.This.SetCatch(.T.)
      SET DATASESSION TO (liSessionID)
      =m.This.SetCatch(luCatch)
      RETURN m.This.nErr