|
of_setdatasource
|
|
Full name
|
pfc_u_lv.of_setdatasource
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setdatasource(string,n_tr,string)
|
public function integer of_setdatasource (string as_datawindow, n_tr at_trans, string as_labelcolumn);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetDataSource
//
// Access: public
//
// Arguments:
// as_DataWindow The DataWindow object to be used for the data source.
// at_Trans The transaction object for this data source.
// as_LabelColumn The column in the DataWindow object to display as the label.
//
// Returns: Integer
// 1 - the data source was added successfully
// -1 - there were no key columns defined on the DataWindow
// -2 - one of the columns provided did not exist
// -3 - no DataWindow object was provided
//
// Description: Register a data source for the ListView. The data source is a
// DataWindow object that will be linked to the ListView level and used
// to populate.
//
// This function overloads the real of_SetDataSource function to allow the
// last 5 retrieval argument to be optional.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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.
//
//////////////////////////////////////////////////////////////////////////////
Return of_SetDataSource(as_DataWindow, at_Trans, as_LabelColumn, "", "", "", "", "")
end function