of_selectedcount


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_rowselection   >   of_selectedcount   

Full name pfc_n_cst_dwsrv_rowselection.of_selectedcount
Access public
Extend of long
Return value long
Prototype public function long of_selectedcount(ref long[])

Name Datatype
No Data

Name Datatype
ll_counter long
ll_selected long

public function long of_selectedcount (ref long al_selectedrows[]);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_SelectedCount
//
//	Access:  		Public
//
//	Arguments:  	none
//
//	Returns:  		Long
//						The number of selected rows in the datawindow.
//						-1 if an error occurs
//
//	Description:  	Count 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.
//
//////////////////////////////////////////////////////////////////////////////
long	ll_selected=0
long	ll_counter=0

//Check for any requirements.
If IsNull(idw_requestor) Or Not IsValid(idw_requestor) Then Return -1

//Loop and count the number of selected rows.
DO
	ll_selected = idw_requestor.GetSelectedRow ( ll_selected )
	IF ll_selected > 0 THEN
		ll_counter++
		al_selectedrows[ll_counter] = ll_selected
	END IF
LOOP WHILE ll_selected > 0

Return ll_counter

end function

     
Name Owner
w_resp_customer_search.cb_products.clicked cb_products
w_resp_customer_search.cb_ok.clicked cb_ok
w_resp_employee.cb_orders.clicked cb_orders
w_resp_employee.cb_ok.clicked cb_ok
w_resp_sales_order.cb_ok.clicked cb_ok
w_resp_salesperson.cb_ok.clicked cb_ok
pfc_u_dw.pfc_print pfc_u_dw

     
Name Owner
datawindow.getselectedrow datawindow
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions

     
Full name
No Data

     
Name Scope
No Data