|
pfc_preopen
|
|
Full name
|
pfc_w_sqlspyinspect.pfc_preopen
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event pfc_preopen()
|
event pfc_preopen;call super::pfc_preopen;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_pre_open
//
// (Arguments: None)
//
// (Returns: None)
//
// Description: Handle processing that occurs before the open event.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
// Allow window to close without the CloseQuery checks being performed.
ib_disableclosequery = True
//Set focus on the Current SQLSyntax detail
SetFocus(mle_currentsyntax)
//Prepare window for user interaction.
mle_currentheading.Text = gnv_app.inv_debug.inv_sqlspy.of_GetCurrentHeading()
mle_currentsyntax.Text = gnv_app.inv_debug.inv_sqlspy.of_GetCurrentSyntax()
//If appropriate, start the Preference service.
If gnv_app.of_IsRegistryAvailable() Then
If Len(gnv_app.of_GetUserKey())> 0 Then
of_SetPreference(True)
End If
Else
If Len(gnv_app.of_GetUserIniFile()) > 0 Then
of_SetPreference(True)
End If
End If
end event