destructor


pfcmain.pbl   >   pfc_u_tv   >   destructor   

Full name pfc_u_tv.destructor
Access public
Extend of
Return value
Prototype event destructor()

Name Datatype
No Data

Name Datatype
li_Cnt Integer
li_NumDS Integer

event destructor;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  Destructor
//
//	Description:	Destroy the DataStores that were created
//						when the data sources were registered.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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_NumDS, li_Cnt

li_NumDS = UpperBound(inv_ds)
For li_Cnt = 1 To li_NumDS
	If IsValid(inv_ds[li_Cnt].ds_obj) Then
		Destroy inv_ds[li_Cnt].ds_obj
	End If
Next

ids_buffer.of_SetBase(false)
Destroy ids_Buffer

end event

     
Name Owner
No Data

     
Name Owner
systemfunctions.isvalid systemfunctions
systemfunctions.upperbound systemfunctions
pfc_n_ds.of_setbase pfc_n_ds

     
Full name
No Data

     
Name Scope
No Data