|
of_setpredefinedsource
|
|
Full name
|
pfc_n_cst_error.of_setpredefinedsource
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setpredefinedsource(n_tr)
|
Name
|
Datatype
|
li_rc
|
Integer
|
public function integer of_setpredefinedsource (n_tr atr_trans);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetPredefinedSource
//
// Access: public
//
// Arguments:
// atr_trans Transaction to use to retrieve pre-defined messages.
//
// Returns: Integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description: This function is called to set the transaction to use for
// reading pre-defined messages. It will also perform an
// initial loading of the messages.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
/////////////////////////////////////////////////////////////////////////////
Integer li_rc
// Check that the transaction is connected.
If IsNull(atr_trans) Or Not IsValid(atr_trans) Then
Return -1
End If
If dbhandle(atr_trans) = 0 Then
Return -1
End If
// Clear the input file.
is_msgfile = ""
// Set the database information.
is_msgsrc = DATABASE
itr_msgdb = atr_trans
// Load the predefined messages.
li_rc = of_LoadPredefinedMsg()
Return li_rc
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|
systemfunctions.dbhandle |
systemfunctions
|
pfc_n_cst_error.of_loadpredefinedmsg |
pfc_n_cst_error
|