Hello,
I am using Powerbuilder 2022R3 - 3356 On my personal development box, the command li_status = wb_navigator.Navigate("www.google.ca") returns 1 (valid url) li_status = wb_navigator.Navigate("something") returns -1 (it's not a valid url) but on my client box, with the same version the example with the invalid url still returns 1 here is a snippet of the code: =================================================================================================================================
//actual web url to navigate to is_url_orig = ls_url //test the webbrowser error management //something is not a valid url so it should return a value < 0, i would expect -5 //but when testing in a different dev environment (mine), it returns -1 //on the client machine, powerbuilder returns a 1 thinking something is a valid website ls_url = "something" // SPRF-1589, 2024-08-19, D.Seguin - Utilisation du nouveau standard visual webbrowser alias u_webbrowser li_status = wb_navigateur.Navigate(ls_url) if li_status <> 1 then ls_msgerreur = "Une erreur est apparue lors de l'ouverture de la page internet suivante: " + & trim(ls_url) + "~r~n" choose case li_status case -1 ls_msgerreur = trim(ls_msgerreur) + "Erreur général" case -2 ls_msgerreur = trim(ls_msgerreur) + "Erreur causée par l'impossibilité d'obtenir un instance du navigateur" case -5 ls_msgerreur = trim(ls_msgerreur) + "Erreur causée par une adresse internet invalide" end choose SignalError (15000, ls_msgerreur) end if
=================================================================================================================================
Any ideas?
Thanks Daniel
With pleasure!
What if the file is not on the C: drive but on the D: drive?
regards