of_confirmdelete


pfcapsrv.pbl   >   pfc_n_cst_tvsrv_levelsource   >   of_confirmdelete   

Full name pfc_n_cst_tvsrv_levelsource.of_confirmdelete
Access public
Extend of integer
Return value integer
Prototype public function integer of_confirmdelete(long)

Name Datatype
No Data

Name Datatype
No Data

public 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
//	6.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_tv_datasource_confirmdeletesingle", "Confirm Delete", &
			"Are you sure you want to delete " + is_displayitem + "?", question!, yesno!, 1)
else
	return of_MessageBox ("pfc_tv_datasource_confirmdeletemulti", "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_tvsrv_levelsource.of_deleteitem pfc_n_cst_tvsrv_levelsource

     
Name Owner
systemfunctions.string systemfunctions
pfc_n_base.of_messagebox pfc_n_base

     
Full name
No Data

     
Name Scope
No Data