Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB6: OnNavigationCompleted issue
#3
(2022-04-19, 11:52:32)wila Wrote: Hi Przemek,

That was indeed a problem in earlier versions.
The issue is that VB6 does not understand Int64 and as such the NavigationId parameter isn't understood because of the datatype Int64.

In the private beta build that you have there's an alternative version of that event called OnNavigationCompletedHex (and OnFrameNavigationCompletedHex) that passes the Int64 variable as a hexadecimal string instead.
You can use that event AFTER you set the property EventsUseHexadecimal to True.

Oh.. and you can convert the Hexadecimal parameter back to an integer using: 

NavigationId = Abs("&H" & NavigationIdHex)

Hope this helps,
--
Wil

THX. Yes your advice helped. This method works fine.

Code:
Private Sub EdgeWebBrowser_OnNavigationCompletedHex(ByVal IsSuccess As Boolean, ByVal WebErrorStatus As AntViewAx.TxWebErrorStatus, ByVal NavigationIdHex As String)
NavigationIdHex = Abs("&H" & NavigationIdHex)
Debug.Print "Index: " & NavigationIdHex & ". URL: " & EdgeWebBrowser.Source & ". Status: " & IsSuccess
End Sub


--
Przemek
Reply


Messages In This Thread
VB6: OnNavigationCompleted issue - by MrPrzemek - 2022-04-19, 11:29:33
RE: VB6: OnNavigationCompleted issue - by wila - 2022-04-19, 11:52:32
RE: VB6: OnNavigationCompleted issue - by MrPrzemek - 2022-04-19, 12:37:21

Forum Jump:


Users browsing this thread: 1 Guest(s)