BeforeConnect

<< Click to Display Table of Contents >>

Navigation:  The Vo2Ado RDD > CallBacks > Connection CallBack Methods >

BeforeConnect

Previous pageReturn to chapter overviewNext page

METHOD BeforeConnect(sConn, oConn) CLASS <CALLBACK>

 

Arguments

 

sConnConnection Name
oConnThe connection object (not open yet)

 

Returns

Irrelevant

 

Description

 

With this callback you have the chance to modify connection properties before the connection is opened. You can also save the connection object in your app in case you need it later

 

 

Example

 

METHOD BeforeConnect (sConn, oConn) CLASS MyConnectionCallBack

   // Set connection properties

   oConn:Properties:[Item,"Prompt"] := 1 // adPromptAlways

   oConn:Mode                                 := 1 // adModeRead

   // Save connection in global Object

   goConn := oConn

   RETURN NIL