• Welcome to Theos PowerBasic Museum 2017.

url variant is empty

Started by Edwin Knoppert, January 01, 2010, 04:46:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Edwin Knoppert

I am cathing this event and is invoked but in 3 apps now it remains empty.
Huh?

   METHOD BeforeNavigate2 <250> ( _
     BYVAL pDisp AS IDispatch _                         ' __in IDispatch* pDisp
   , BYREF vURL AS VARIANT _                            ' __in VARIANT* URL
   , BYREF vFlags AS VARIANT _                          ' __in VARIANT* Flags
   , BYREF vTargetFrameName AS VARIANT _                ' __in VARIANT* TargetFrameName
   , BYREF vPostData AS VARIANT _                       ' __in VARIANT* PostData
   , BYREF vHeaders AS VARIANT _                        ' __in VARIANT* Headers
   , BYREF bCancel AS INTEGER _                         ' __in_out VARIANT_BOOL* Cancel
   )                                                    ' void
msgbox variant$( vURL )

The app does work though.
I have tested your EX_OC_WB_WebGui.zip at http://www.jose.it-berater.org/smfforum/index.php?topic=2709.0

José Roca

 
Indeed. That example doesn't navigate to any URL. It uses "about:blank".

Edwin Knoppert

I have to verify that part but note that the url shouldn't be empty.
Also note that i do get events but the variant seems empty.
This applies for this event as for the doc compete.
I found this issue out in an app of mine which does navigate to something else then about:blank.
Odd is that i recompiled the app from the office at home and broke in that part.
It compiles fine though.

In two apps this event interface does allow me to show the statustext event fine.

?

Edwin Knoppert

There is a difference between 901 and 902 and up, i'll find it out but do note that there is a compiler issue.
After installing 902 and 903 i simply replaced pbwin.exe v901 and thus not the includefiles and such.
901 does work as intended.

José Roca

 
Then  you should report it to PowerBASIC. I no longer have 9.01.

Edwin Knoppert

Today's message was mentioned as a warning only..
+ the trouble begins with 902 and up, i will try to write me a little example so i can find the issue.

Edwin Knoppert

This was a confirmed issue, 9.01 works, above not, the beta fix's this again.
Contact support evt.