Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapping a route
Message
From
16/03/2016 17:05:52
 
 
To
16/03/2016 10:45:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01633169
Message ID:
01633202
Views:
53
What I have done, Yousfi, when gathering the data to populate the schedule in the program, is also build a string with all the addresses:
(sorry - I can't remember the 'tags' for proper formatting in here - my apologies!)
IF EMPTY(AddressString)
	AddressString=Address
ELSE
	AddressString=AddressString+CHR(13)+CHR(10)+Address
ENDIF

When it is done, I copy the AddressString to the windows clipboard
_ClipText = AddressString

Then in the Map Route button, I have:

***open default web browser and go to map page***

lcUrl = [https://www.mapcustomizer.com/#]

* declare API-function 'ShellExecute'
DECLARE ShellExecute IN shell32.dll Integer, String, String, String, String, Integer

* let windows decide, which app computes URLs
ShellExecute( 0 , [open] , lcUrl , [] , [] , 1 )

* undeclare API-function
CLEAR DLLS [ShellExecute]
This opens the map website page. I then paste in the list to the 'bulk load', and it plots it just fine! It would be nice to not have to manually paste it, but it is better than nothing this way!

Thanks again for your help!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform