of_unregister


pfcmain.pbl   >   pfc_u_calendar   >   of_unregister   

Full name pfc_u_calendar.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_unregistered Integer
li_upper Integer

public function integer of_unregister ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_UnRegister
//
//	Access:  		Public.
//
//	Arguments:		None
//
//	Returns:  		Integer
//	1 successful.
// 0 nothing previously registered.
//
//	Description: 	
//	 UnRegisters all registerd columns from the service.
//
//		*Note:	Function is only valid when serving a DataWindow control.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.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_upper
Integer	li_cnt
Integer	li_unregistered = 0

// Loop around all registered columns.
li_upper = UpperBound(is_dwcolumns)
For li_cnt = 1 to li_upper
	If Len(is_dwcolumns[li_cnt]) > 0 Then
		If of_Unregister(is_dwcolumns[li_cnt]) = 1 Then
			li_unregistered ++
		End If
	End If
Next

If li_unregistered > 0 Then
	Return 1
End If
	
Return 0
end function

     
Name Owner
pfc_u_calendar.destructor pfc_u_calendar

     
Name Owner
systemfunctions.len systemfunctions
systemfunctions.upperbound systemfunctions
pfc_u_calendar.of_unregister pfc_u_calendar

     
Full name
No Data

     
Name Scope
No Data