of_UnRegister


pfcdwsrv.pbl   >   pfc_n_cst_dssrv_multitable   >   of_UnRegister   

Full name pfc_n_cst_dssrv_multitable.of_UnRegister
Access public
Extend of integer
Return value integer
Prototype public function integer of_UnRegister()

Name Datatype
No Data

Name Datatype
li_cnt integer
li_registeredcount integer
li_unregistercount integer
ls_empty string[]

public function integer of_UnRegister ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_UnRegister
//
//	Access:    		Public
//
//	Arguments:	 None
//
//	Returns:  		Integer
// # the number of tables that were unregistered.
// -1 - error
//
//	Description: 	
//	Unregister all.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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
integer	li_unregistercount
string	ls_empty[]

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

// Get the upper value for registered objects.
li_registeredcount = UpperBound ( inv_newupdate ) 
For li_cnt = 1 to li_registeredcount
	If Len(Trim(inv_newupdate[li_cnt].s_updatetable)) > 0 Then
		// A table to be unregistered has been found. 
		li_unregistercount ++
		inv_newupdate[li_cnt].s_updatetable = ''
		inv_newupdate[li_cnt].i_whereoption = 0
		inv_newupdate[li_cnt].b_keyupdateinplace = False
		inv_newupdate[li_cnt].s_updatecolumns = ls_empty
		inv_newupdate[li_cnt].s_keycolumns = ls_empty
	End If
Next

Return li_unregistercount
end function

     
Name Owner
No Data

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

     
Full name
No Data

     
Name Scope
No Data