of_confirmdelete


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_rowmanager   >   of_confirmdelete   

Full name pfc_n_cst_dwsrv_rowmanager.of_confirmdelete
Access protected
Extend of integer
Return value integer
Prototype protected function integer of_confirmdelete(long)

Name Datatype
No Data

Name Datatype
No Data

protected function integer of_confirmdelete (long al_amount);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_ConfirmDelete
//
//	Access:  protected
//
//	Arguments:
//	al_amount:  number of rows to confirm deletion for
//
//	Returns:  integer
//	 1 = yes (ok to delete)
//	 2 = no (do not delete)
//	-1 = error
//
//	Description:  Displays messagebox confirming deletion
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Validate amount argument
if al_amount <=0 then
	return -1
end if

// Display confirm delete message based on single/multiple deletes
if al_amount = 1 then
	return of_MessageBox ("pfc_rowmanager_confirmsingledelete", "Confirm Delete",  &
		"Are you sure you want to delete " + is_displayitem + "?", question!, yesno!, 1)
else
	return of_messageBox ("pfc_rowmanager_confirmmultipledelete","Confirm Multiple Delete", &
		"Are you sure you want to delete these " + &
		String (al_amount) + " " + is_displayunits + "?", question!, yesno!, 1)
end if
end function

     
Name Owner
pfc_n_cst_dwsrv_rowmanager.of_deleterow pfc_n_cst_dwsrv_rowmanager
pfc_n_cst_dwsrv_rowmanager.of_deleteselected pfc_n_cst_dwsrv_rowmanager
pfc_n_cst_dwsrv_rowmanager.of_deleteall pfc_n_cst_dwsrv_rowmanager

     
Name Owner
systemfunctions.string systemfunctions
pfc_n_base.of_messagebox pfc_n_base

     
Full name
No Data

     
Name Scope
No Data