<< Click to Display Table of Contents >> BeforeConnect |
![]() ![]() ![]() |
METHOD BeforeConnect(sConn, oConn) CLASS <CALLBACK>
Arguments
sConn | Connection Name |
oConn | The 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