of_isregistered


pfcdwsrv.pbl   >   pfc_n_cst_dssrv_multitable   >   of_isregistered   

Full name pfc_n_cst_dssrv_multitable.of_isregistered
Access public
Extend of boolean
Return value boolean
Prototype public function boolean of_isregistered(string)

Name Datatype
No Data

Name Datatype
li_cnt integer
li_registeredcount integer

public function boolean of_isregistered (string as_table);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_IsRegistered
//
//	Access:    		Public
//
//	Arguments: 
//  as_table: 			A string containing the table to check for
//
//	Returns:  		Boolean
// True if the table is registered
//
//	Description: 	
//	Determines if the table is registered.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.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_registeredcount
integer	li_cnt

// Validate the datawindow reference.
If IsNull(ids_requestor) Or Not IsValid(ids_requestor) Then Return False

// Get the upper value for registered objects.
li_registeredcount = UpperBound ( inv_newupdate ) 
For li_cnt = 1 to li_registeredcount
	If inv_newupdate[li_cnt].s_updatetable = Trim(as_table) Then
		// The table is already registered.
		Return True
	End If
Next

// Not registered.
Return False
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.trim systemfunctions
systemfunctions.upperbound systemfunctions

     
Full name
No Data

     
Name Scope
No Data