Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

STRUGGLING WITH COMARRAY

Status
Not open for further replies.

skrizoo

Programmer
Mar 9, 2001
8
CA
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
 
skrizoo,

This appears to be a duplicate thread of one you already created:

Coding MapPoint 2004 for VFP V8
thread184-931531

...perhaps you'd like to continue this discussion in that other thread as this one is likely to get deleted as being a duplicate?

boyd.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top