|
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,string,string,string)
|
public function integer of_setdatasource (string as_datawindow, n_tr at_trans, string as_labelcolumn, string as_picturecolumn, string as_statecolumn, string as_overlaycolumn);//////////////////////////////////////////////////////////////////////////////
//
// 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.
// as_PictureColumn The column in the DataWindow object to use for the picture.
// The column may be an integer (used as the picture index) or a
// string (a bmp name which will be used as the picture).
// as_StateColumn The column in the DataWindow object to use for the state picture.
// The column may be an integer (used as the picture index) or a
// string (a bmp name which will be used as the picture).
// as_OverlayColumn The column in the DataWindow object to use for the overlay picture.
// The column may be an integer (used as the picture index) or a
// string (a bmp name which will be used as the picture).
//
// 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 2 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, as_PictureColumn, &
as_StateColumn, as_OverlayColumn, "", "")
end function