David Haarmeyer
10-12-2010, 04:00 PM
I'm developing an application in Visual FoxPro 7.0 which opens Mappoint 2010 with a csv file linked as a dataset. When the application re-writes the csv file, I need to have Mappoint refresh automatically (without hitting <SHIFT><F9>). Any Ideas?
I use the following code to create the object
objApp = CREATEOBJECT('MapPoint.Application')
objApp.Visible = 'True'
objApp.UserControl = 'True'
With objApp.ActiveMap.DataSets
oDS=.LinkData(szconn,"key", ,244,44,0)
ENDWITH
and attempt to update the link with
objApp.Visible = 'True'
objApp.UserControl = 'True'
objApp.setfocus = 'True'
With objApp.ActiveMap.DataSet
oDs=.UpdateLink
ENDWITH
but it doesn't update.
Also - is there any way to tell mappoint which fields to use to populate the map so that I don't need to manually go into the settings after each refresh?
I use the following code to create the object
objApp = CREATEOBJECT('MapPoint.Application')
objApp.Visible = 'True'
objApp.UserControl = 'True'
With objApp.ActiveMap.DataSets
oDS=.LinkData(szconn,"key", ,244,44,0)
ENDWITH
and attempt to update the link with
objApp.Visible = 'True'
objApp.UserControl = 'True'
objApp.setfocus = 'True'
With objApp.ActiveMap.DataSet
oDs=.UpdateLink
ENDWITH
but it doesn't update.
Also - is there any way to tell mappoint which fields to use to populate the map so that I don't need to manually go into the settings after each refresh?