|
of_setpredefinedsource
|
|
Full name
|
pfc_n_cst_error.of_setpredefinedsource
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setpredefinedsource(string)
|
Name
|
Datatype
|
li_rc
|
Integer
|
public function integer of_setpredefinedsource (string as_file);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetPredefinedSource
//
// Access: public
//
// Arguments:
// as_file Filename used to read pre-defined messages
//
// Returns: integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description: This function is called to set the file, including path, to use
// read 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 arguments.
If IsNull(as_file) or Len(Trim(as_file))=0 Then
Return -1
End If
// Invalidate the Transaction.
setnull(itr_msgdb)
// Set the file information.
is_msgsrc = FILE
is_msgfile = as_file
// Load the predefined messages.
li_rc = of_LoadPredefinedMsg()
Return li_rc
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.len |
systemfunctions
|
systemfunctions.setnull |
systemfunctions
|
systemfunctions.trim |
systemfunctions
|
pfc_n_cst_error.of_loadpredefinedmsg |
pfc_n_cst_error
|