|
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)
|
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