OnRequestElementValueByName
Interface AntViewDocument
Type: Event
Parameters: String Name String Value Integer Error
Returns: None
Asynchronous result triggered after calling the RequestElementValueByName method.
Name contains the Name of the html element which was requested. Name is case sensitive.
Value holds the value of the first element identified by Name.
Error is 0 when the element was found, or 1 if the element identified by Name was not found.
Example code in DataFlex:
Object oDocument is a cComAntViewDocument
Set peAutoCreate to acAutoCreate
Procedure OnComRequestElementValueByName String llId String llValue Integer llError
Showln "requesting elem value " llId " " llValue " error = " llError
End_Procedure
Procedure ConnectBrowser
Variant vBrowser
Get pvComObject of oEdgeWebBrowser to vBrowser
Set ComCurrentBrowser to vBrowser
End_Procedure
End_Object
Object oEdgeWebBrowser is a cComAntView
Set Location to 10 10
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024