|
of_Commit
|
|
Full name
|
pfc_n_tr.of_Commit
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_Commit()
|
Name
|
Datatype
|
ll_rc
|
long
|
ls_name
|
string
|
public function long of_Commit ();//////////////////////////////////////////////////////////////////////////////
// Public Function: of_Commit
// Arguments: None
// Returns: long - The SQLCode return value from the commit statement.
// -10 if there is no connection to the database.
// Description: Issues a commit transaction
//////////////////////////////////////////////////////////////////////////////
// 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 = -10
string ls_name
if of_IsConnected() then
// If SQLSpy service is on, add to the history
if IsValid (gnv_app) then
if IsValid (gnv_app.inv_debug) then
if IsValid (gnv_app.inv_debug.inv_sqlspy) then
ls_name = this.is_Name
if Len (ls_name) = 0 then
ls_name = this.ClassName()
end if
gnv_app.inv_debug.inv_sqlspy.of_SQLSyntax ("Commit using " + ls_name )
end if
end if
end if
commit using this;
ll_rc = this.SQLCode
end if
return ll_rc
end function