of_DisConnect


pfcmain.pbl   >   pfc_n_tr   >   of_DisConnect   

Full name pfc_n_tr.of_DisConnect
Access public
Extend of long
Return value long
Prototype public function long of_DisConnect()

Name Datatype
No Data

Name Datatype
ll_rc long
ls_name string

public function long of_DisConnect ();//////////////////////////////////////////////////////////////////////////////
//	Public Function:  of_DisConnect
//	Arguments:		None
//	Returns:			long - The SQLCode return value after the disconnect is issued
//	Description:	Issues a disconnect
//////////////////////////////////////////////////////////////////////////////
//	Rev. History	Version
//						5.0   Initial version
//////////////////////////////////////////////////////////////////////////////
//	Copyright © 1996-1999 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.
//////////////////////////////////////////////////////////////////////////////
long	ll_rc
string	ls_name

// If SQLSpy is available, add to the history
if IsValid (gnv_app) then
	if IsValid (gnv_app.inv_debug) then
		ls_name = this.is_Name
		if Len (ls_name) = 0 then
			ls_name = this.ClassName()
		end if
		if IsValid (gnv_app.inv_debug.inv_sqlspy) then
			gnv_app.inv_debug.inv_sqlspy.of_SQLSyntax ("Disconnect using " + ls_name)
		end if 
	end if
end if

disconnect using this;
ll_rc = this.SQLCode

return ll_rc
end function

     
Name Owner
pfc_n_tr.of_SetTrace pfc_n_tr
n_cst_demopfc.pfc_close n_cst_demopfc
pfc_n_tr.destructor pfc_n_tr

     
Name Owner
powerobject.classname powerobject
systemfunctions.isvalid systemfunctions
systemfunctions.len systemfunctions
pfc_n_cst_sqlspy.of_sqlsyntax pfc_n_cst_sqlspy

     
Full name
demopfc

     
Name Scope
No Data