Nancy maybe you need
oe.navigate("File://" + sys(5)+CurDir() + "Help\index.html")
instead of
oe.navigate("File://" + CurDir() + "\Help\index.html")
Glenn
>Rick-
>
>Jim said:
>>>> The following code doesn't work from VB or VFP.
>>>
>>>The code you posted is VB. Of course it wouldn't work in VFP, right?
>>>
>>>>Set oexplorer = CreateObject("internetexplorer.application")
>>>>oexplorer.navigate = "File://" & CurDir & "\Help\index.html"
>>>>oexplorer.Visible = True
>>>
>
>I said:
>
>
>>You need something like:
>>>
>>>LOCAL oe
>>>oe = CREATEOBJECT("InternetExplorer.Application")
>>>oe.navigate("File://" + CurDir() + "\Help\index.html") && Assuming CurDir() doesn't have a space.
>>>oe.visible = .t.
>
>You said:
>
>>This works for me:
>>
>>
>>oexplorer = CreateObject("internetexplorer.application")
>>oExplorer.Navigate("file://d:\westwind\webconnection\wcpricing.htm")
>>oExplorer.Visible = .T.
>>
>>
>>Your syntax is wrong...
>
>I'm not sure what part of my syntax you're refering to as wrong. Seems we're saying the same thing?