|
of_GetSqlState
|
|
Full name
|
pfc_n_tr.of_GetSqlState
|
Access
|
public
|
Extend of
|
string
|
Return value
|
string
|
Prototype
|
public function string of_GetSqlState()
|
Name
|
Datatype
|
li_pos1
|
integer
|
li_pos2
|
integer
|
ls_temp
|
string
|
public function string of_GetSqlState ();//////////////////////////////////////////////////////////////////////////////
// Public Function: of_GetSqlState
// Arguments: None
// Returns: string - SQL state generated by the dbms
// Description: Return the SQL state generated by the dbms
//////////////////////////////////////////////////////////////////////////////
// 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.
//////////////////////////////////////////////////////////////////////////////
integer li_pos1
integer li_pos2
string ls_temp
if this.SqlErrText <> "" then
li_pos1 = Pos (this.SqlErrText, "=") +2
li_pos2 = (Pos (this.SqlErrText, "[") -2) - li_pos1
ls_temp = Mid (this.SqlErrText, li_pos1, li_pos2)
end if
return ls_temp
end function
Name
|
Owner
|
systemfunctions.mid |
systemfunctions
|
systemfunctions.pos |
systemfunctions
|