Web Application - Confirm Method
Show the browser Confirm dialog
Member of Web Application (PRIM_WEB.Application)
Name |
Type |
Data Type |
Description |
Caption |
*Input |
Unicode String |
Text to be displayed in the dialog |
ResultCode |
*Result (Optional) |
Enumeration |
Button pressed in the dialog |
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.
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
All Component Classes
Technical Reference