|
of_ConfirmDelete
|
|
Full name
|
pfc_n_cst_lvsrv_datasource.of_ConfirmDelete
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_ConfirmDelete(long)
|
public function integer of_ConfirmDelete (long al_amount);//////////////////////////////////////////////////////////////////////////////
// Public Function: of_ConfirmDelete
// 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
//////////////////////////////////////////////////////////////////////////////
// Rev. History: Version
// 6.0 Initial version
//////////////////////////////////////////////////////////////////////////////
// Copyright © 1996-1999 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
// Display confirm delete message based on single/multiple deletes
if al_amount = 1 then
return of_MessageBox ("pfc_lv_datasource_confirmdeletesingle", "Confirm Delete", &
"Are you sure you want to delete " + is_displayitem + "?", Question!, YesNo!, 1)
else
return of_MessageBox ("pfc_lv_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