|
of_populate
|
|
Full name
|
pfc_u_lvs.of_populate
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_populate()
|
Name
|
Datatype
|
lds_data
|
n_ds
|
public function long of_populate ();//////////////////////////////////////////////////////////////////////////////
//
// Function: of_populate
//
// Access: public
//
// Arguments: none
//
// Returns: Long
// # of items added to the listview
// -1 = error
//
// Description:
// retrieves the datasource and uses it to load the listview with data
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
n_ds lds_data
Setpointer(hourglass!)
// clear the listview
If this.DeleteItems() < 1 Then Return -1
// retrieve the data into the services datastore
If this.event pfc_retrieve(lds_data) < 0 Then Return -1
// add the retrieved rows to the listview
Return this.event pfc_addall(lds_data)
end function