User Tools

Site Tools


kill_shut_down_the_relationmanager_object_.htm
Navigation:  ABC Library Reference > RelationManager > RelationManager Methods >====== Kill (shut down the RelationManager object) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

Kill, VIRTUAL

blk2blue.jpg

The Kill method frees any memory allocated during the life of the object and performs any other required termination code.

Example:

 

PROGRAM

INCLUDE('FILE.INC')                  !declare RelationManager class

Access:Client  CLASS(FileManager)     !declare Access:Client class

Init            PROCEDURE

              END

Client   FILE,DRIVER('TOPSPEED'),PRE(CLI),THREAD !declare Client file

IDKey    KEY(CLI:ID),NOCASE,OPT,PRIMARY

Record    RECORD,PRE()

ID         LONG

Name       STRING(20)

StateCode  STRING(2)

         END

        END

 CODE

 Access:Client.Init                         !initialize Access:Client obj

 Relate:Client.Init(Access:Client,1)        !init Relate:Client–use logout

 Relate:Client.AddRelation( Relate:States ) !relate Client to States file

 !program code

 Relate:Client.Kill                         !shut down Relate:Client object

 Access:Client.Kill                         !shut down Access:Client object

kill_shut_down_the_relationmanager_object_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1