Links are not active on this page.
 dbc_BeforeCreateConnection Event

Occurs before a new connection is created.

PROCEDURE dbc_BeforeCreateConnection( ) 

Expand imageRemarks

You can add code in the dbc_BeforeCreateConnection event to track attempted access to the database before a connection is created, or to prevent the creation of a connection.

Return .F. from this procedure to prevent the connection from being created.

Expand imageExample

 CopyCode imageCopy Code
* Reports to the screen Event name and where it is called from.
PROCEDURE dbc_BeforeCreateConnection
? '>>   ' + PROGRAM()
?? ' in ' + SUBSTR(SYS(16),RAT('\',SYS(16))+1)
RETURN .F.    && Prevents user from creating a connection.
ENDPROC

Expand imageSee Also