|
of_rowselectsingle
|
|
Full name
|
pfc_n_cst_dwsrv_rowselection.of_rowselectsingle
|
Access
|
protected
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
protected function integer of_rowselectsingle(long)
|
protected function integer of_rowselectsingle (long al_row);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_RowSelectSingle
//
// Access: Protected
//
// Arguments: Long
// al_row The clicked row, passed from pfc_u_dw's Clicked event argument
//
// Returns: Integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description: Selects the clicked row and de-selects any previously
// selected rows.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
// Check arguments.
If IsNull(al_row) or al_row <0 Then
Return -1
End If
// Deselect all rows.
idw_Requestor.SelectRow ( 0, FALSE )
// Select the one row.
idw_Requestor.SelectRow ( al_row, TRUE )
// Set the one row as the current row.
If idw_Requestor.GetRow() <> al_row Then
idw_Requestor.SetRow ( al_row )
End If
Return 1
end function
Name
|
Owner
|
datawindow.getrow |
datawindow
|
datawindow.selectrow |
datawindow
|
datawindow.setrow |
datawindow
|
systemfunctions.isnull |
systemfunctions
|