|
of_isregistered
|
|
Full name
|
pfc_n_cst_trregistration.of_isregistered
|
Access
|
public
|
Extend of
|
boolean
|
Return value
|
boolean
|
Prototype
|
public function boolean of_isregistered(string)
|
Name
|
Datatype
|
li_cnt
|
integer
|
li_upperbound
|
integer
|
ls_name
|
string
|
public function boolean of_isregistered (string as_name);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_IsRegistered
//
// Access: public
//
// Arguments:
// as_name Name of the transaction object to check for registration
//
// Returns: boolean
// Returns whether the transaction object specified is registered
// with the service.
//
// Description: Check whether the transaction object specified is registered
// with the service.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision 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_upperbound
integer li_cnt
string ls_name
// Check if registered.
li_upperbound = UpperBound (inv_trans)
for li_cnt = 1 to li_upperbound
if inv_trans[li_cnt].b_used and IsValid (inv_trans[li_cnt].tr_object) then
ls_name = inv_trans[li_cnt].tr_object.of_GetName()
if ls_name = as_name then
// The Transaction is registered.
Return True
end if
end if
next
// The Transaction is NOT registered.
Return False
end function
Name
|
Owner
|
systemfunctions.isvalid |
systemfunctions
|
systemfunctions.upperbound |
systemfunctions
|
pfc_n_tr.of_GetName |
pfc_n_tr
|