We incorporate Microsoft's MapPoint in our VPF8 applications to display mapping info.
Since we automate the generation of maps, we use a prg to 'communicate' with the mapping software
Of course, this third party software is designed for VB, and we find ourselves overcoming the language problems
One of the VB methods we need requires 'feeding it' an array to define certain values and I am not able to get this to work.
The VB statement is...
objDataSet.SetFieldsVisibleInBalloon Arrayname
Craig in this forum suggested using the COMARRAY function to 'pass' the array to this VB method.
I tried a few things but I am struggling incorporating the right code to accomplish this. If anybody can "show me the way" it would be very much appreciated.
I am attaching my current code below.
Best Regards
Jerry Bendiner
TechnoLogix
******************************
Here is my existing code.. how do i incorporate the comarray function programatically ???
******************************
myfile = "mapdata.xls"
DSplant = myApp.ActiveMap.DataSets.ImportData(myfile, , geoCountryMultiCountry, , geoImportExcelSheet)
DSplant.name="Plants"
* Here I define the four members of the array showfield - the array has been dimensioned properly
showfield[1]="city"
showfield[2]="state"
showfield[3]="country"
showfield[4]="volumen"
* Following is the statement that would be used in VB. I tried using (@showfield) and @showfield, and neither worked.
DSplant.setfieldsvisibleinballon showfield
Since we automate the generation of maps, we use a prg to 'communicate' with the mapping software
Of course, this third party software is designed for VB, and we find ourselves overcoming the language problems
One of the VB methods we need requires 'feeding it' an array to define certain values and I am not able to get this to work.
The VB statement is...
objDataSet.SetFieldsVisibleInBalloon Arrayname
Craig in this forum suggested using the COMARRAY function to 'pass' the array to this VB method.
I tried a few things but I am struggling incorporating the right code to accomplish this. If anybody can "show me the way" it would be very much appreciated.
I am attaching my current code below.
Best Regards
Jerry Bendiner
TechnoLogix
******************************
Here is my existing code.. how do i incorporate the comarray function programatically ???
******************************
myfile = "mapdata.xls"
DSplant = myApp.ActiveMap.DataSets.ImportData(myfile, , geoCountryMultiCountry, , geoImportExcelSheet)
DSplant.name="Plants"
* Here I define the four members of the array showfield - the array has been dimensioned properly
showfield[1]="city"
showfield[2]="state"
showfield[3]="country"
showfield[4]="volumen"
* Following is the statement that would be used in VB. I tried using (@showfield) and @showfield, and neither worked.
DSplant.setfieldsvisibleinballon showfield