Theos PowerBasic Museum 2017

Archive => Discussion - Legacy Software (PBWIN 9.0+/PBCC 5.0+) => Topic started by: Edwin Knoppert on January 01, 2010, 04:46:08 PM

Title: url variant is empty
Post by: Edwin Knoppert on January 01, 2010, 04:46:08 PM
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
Title: Re: url variant is empty
Post by: José Roca on January 02, 2010, 12:27:58 AM
 
Indeed. That example doesn't navigate to any URL. It uses "about:blank".
Title: Re: url variant is empty
Post by: Edwin Knoppert on January 02, 2010, 01:51:36 AM
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.

?
Title: Re: url variant is empty
Post by: Edwin Knoppert on January 07, 2010, 12:13:53 PM
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.
Title: Re: url variant is empty
Post by: José Roca on January 07, 2010, 02:50:14 PM
 
Then  you should report it to PowerBASIC. I no longer have 9.01.
Title: Re: url variant is empty
Post by: Edwin Knoppert on January 07, 2010, 03:27:00 PM
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.
Title: Re: url variant is empty
Post by: Edwin Knoppert on June 12, 2010, 10:00:29 PM
This was a confirmed issue, 9.01 works, above not, the beta fix's this again.
Contact support evt.