Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

script execution

3 views
Skip to first unread message

Horea

unread,
Sep 27, 2006, 4:11:02 AM9/27/06
to
hello

i have a script (functions with virtual earth) in an html file.
i load the html page in a webbrowser and i wnat to execute those script
functions.

code:

Dim doc As IHTMLDocument2
doc = WebBrowser1.Document

Dim location As String
location = "66424 , DE"

doc.parentWindow.execScript "map.FindLocation(" & location & ")",
"JavaScript"

but , at the 2nd line i receive an error:
"Object variable or With block variable not set"

i have tried all IHTMLDocument1, 2 3 4 5 , same error.

can anyone please help me
thank you

0 new messages