Web Application - Confirm Method

Show the browser Confirm dialog

Member of Web Application (PRIM_WEB.Application)

Parameters

NameTypeData TypeDescription
Caption*InputUnicode StringText to be displayed in the dialog
ResultCode*Result (Optional)EnumerationButton pressed in the dialog

Details

The Confirm method provides access to the JavaScript Confirm function.
 
Confirm shows the Caption as specified returning the value of the button pressed on the dialog.
 
Confirm uses a JavaScript feature. Precise implementation will depend on the browser.

Example

Simple example demonstrating the use of the Confirm method.
Begin_Com Role(*EXTENDS #PRIM_WEB)
 
   Define_Com Class(#PRIM_PHBN) Name(#Confirm) Caption('Confirm') Displayposition(1) Left(16) Parent(#COM_OWNER) Tabposition(1) Top(14) Width(193)
 
   Evtroutine Handling(#Confirm.Click)
 
      If (#sys_web.Confirm( "Please Confirm" ) = OK)
 
         #Confirm.Caption := "Confirm - OK"
 
      Else
 
         #Confirm.Caption := "Confirm - Cancelled"
 
      Endif
 
   Endroutine
 
End_Com

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2