Using VFP9 sp2, IE6

The following code takes me to the appropriate page in Google maps,
thanks to a tip I picked up in this group a month or two ago.

Now that I've implemented it to lots of oohs and aahs, I'm starting to
hear that since most of the time users have a browser based application
running at the same time, they'd like the Google maps link to open in a
new instance of Explorer rather than using the existing instance. Does
anyone have any idea of how to accomplish this?

thisform.hyperlink1.NavigateTo("http://maps.google.com/maps?q="+;
CHRTRAN(ALLTRIM( m.resstrt)," ","+")+"+"+;
ALLTRIM(m.rescty)+"+"+;
m.resst+"+"+;
m.reszip)

Thanks in advance. I'm sure someone's had and solved this problem already.

Dave Tiffany

RE: hyperlink object by Allan

Allan
Thu Feb 14 06:38:01 CST 2008

hi dave,

try this:

LOCAL lcURL
*lcURL = 'www.yahoo.com'
lcURL = "http://maps.google.com/maps?q"
DECLARE ShellExecute IN shell32.dll ;
Integer, String, String, String, String, Integer
=ShellExecute(0,"open",m.lcURL,"","",1)

hope this would help...

allan


"Dave Tiffany" wrote:

> Using VFP9 sp2, IE6
>
> The following code takes me to the appropriate page in Google maps,
> thanks to a tip I picked up in this group a month or two ago.
>
> Now that I've implemented it to lots of oohs and aahs, I'm starting to
> hear that since most of the time users have a browser based application
> running at the same time, they'd like the Google maps link to open in a
> new instance of Explorer rather than using the existing instance. Does
> anyone have any idea of how to accomplish this?
>
> thisform.hyperlink1.NavigateTo("http://maps.google.com/maps?q="+;
> CHRTRAN(ALLTRIM( m.resstrt)," ","+")+"+"+;
> ALLTRIM(m.rescty)+"+"+;
> m.resst+"+"+;
> m.reszip)
>
> Thanks in advance. I'm sure someone's had and solved this problem already.
>
> Dave Tiffany
>

Re: hyperlink object by David

David
Fri Feb 15 11:34:03 CST 2008

Allen,

Thanks for your reply. Sadly, this results in the same behavior. If I have
an instance of explorer open, it changes the address of that rather than
opening a new instance.

Dave


"Allan" <Allan@discussions.microsoft.com> wrote in message
news:A4E48970-8DDD-4F86-B00A-E47979809E65@microsoft.com...
> hi dave,
>
> try this:
>
> LOCAL lcURL
> *lcURL = 'www.yahoo.com'
> lcURL = "http://maps.google.com/maps?q"
> DECLARE ShellExecute IN shell32.dll ;
> Integer, String, String, String, String, Integer
> =ShellExecute(0,"open",m.lcURL,"","",1)
>
> hope this would help...
>
> allan
>
>
> "Dave Tiffany" wrote:
>
>> Using VFP9 sp2, IE6
>>
>> The following code takes me to the appropriate page in Google maps,
>> thanks to a tip I picked up in this group a month or two ago.
>>
>> Now that I've implemented it to lots of oohs and aahs, I'm starting to
>> hear that since most of the time users have a browser based application
>> running at the same time, they'd like the Google maps link to open in a
>> new instance of Explorer rather than using the existing instance. Does
>> anyone have any idea of how to accomplish this?
>>
>> thisform.hyperlink1.NavigateTo("http://maps.google.com/maps?q="+;
>> CHRTRAN(ALLTRIM( m.resstrt)," ","+")+"+"+;
>> ALLTRIM(m.rescty)+"+"+;
>> m.resst+"+"+;
>> m.reszip)
>>
>> Thanks in advance. I'm sure someone's had and solved this problem
>> already.
>>
>> Dave Tiffany
>>



Re: hyperlink object by David

David
Fri Feb 15 15:57:56 CST 2008

Found a workaround. I run this before NavigateTo

IF file("c:\program files\internet explorer\iexplore.exe")
RUN /n c:\program files\internet explorer\iexplore
ENDIF

It opens another instance of explorer and my navigateto command opens google
maps in that instance, leaving the original session where it was.


"David Tiffany" <dtiffany@nospam.com> wrote in message
news:uKqW9j$bIHA.5984@TK2MSFTNGP06.phx.gbl...
> Allen,
>
> Thanks for your reply. Sadly, this results in the same behavior. If I
> have an instance of explorer open, it changes the address of that rather
> than opening a new instance.
>
> Dave
>
>
> "Allan" <Allan@discussions.microsoft.com> wrote in message
> news:A4E48970-8DDD-4F86-B00A-E47979809E65@microsoft.com...
>> hi dave,
>>
>> try this:
>>
>> LOCAL lcURL
>> *lcURL = 'www.yahoo.com'
>> lcURL = "http://maps.google.com/maps?q"
>> DECLARE ShellExecute IN shell32.dll ;
>> Integer, String, String, String, String, Integer
>> =ShellExecute(0,"open",m.lcURL,"","",1)
>>
>> hope this would help...
>>
>> allan
>>
>>
>> "Dave Tiffany" wrote:
>>
>>> Using VFP9 sp2, IE6
>>>
>>> The following code takes me to the appropriate page in Google maps,
>>> thanks to a tip I picked up in this group a month or two ago.
>>>
>>> Now that I've implemented it to lots of oohs and aahs, I'm starting to
>>> hear that since most of the time users have a browser based application
>>> running at the same time, they'd like the Google maps link to open in a
>>> new instance of Explorer rather than using the existing instance. Does
>>> anyone have any idea of how to accomplish this?
>>>
>>> thisform.hyperlink1.NavigateTo("http://maps.google.com/maps?q="+;
>>> CHRTRAN(ALLTRIM( m.resstrt)," ","+")+"+"+;
>>> ALLTRIM(m.rescty)+"+"+;
>>> m.resst+"+"+;
>>> m.reszip)
>>>
>>> Thanks in advance. I'm sure someone's had and solved this problem
>>> already.
>>>
>>> Dave Tiffany
>>>
>
>