Hugh,
You could try Table/Update Column to get current coords displayed- i.e.
Coord_X=CentroidX(obj),Coord_Y=CentroidY(obj).
HTH
Nola
Nola Strawbridge
GIS Admin/Analyst
City Works & Services
Cairns City Council
Tel: 4044 3219
Fax: 4044 3838
email: [EMAIL PROTECTED] 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Sunday, 8 October 2006 3:02 AM
To: [email protected]
Subject: MapInfo-L Digest, Vol 12, Issue 20


Send MapInfo-L mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.directionsmag.com/mailman/listinfo/mapinfo-l
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MapInfo-L digest..."


Today's Topics:

   1. Re: VB.NET & Integrated Mapping (Lars I. Nielsen (GisPro))
   2. RE: Dynamic expressions in select clauses (Peter Horsb?ll M?ller)
   3. Geo-coding (h mangan)


----------------------------------------------------------------------

Message: 1
Date: Fri, 06 Oct 2006 19:32:10 +0200
From: "Lars I. Nielsen (GisPro)" <[EMAIL PROTECTED]>
Subject: Re: [MI-L] VB.NET & Integrated Mapping
To: Cory Martin <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Cory,

The running mbx's can be accessed from the MIPro object by traversing 
its MBApplications collection, like this :

For Each mbx In mipro.MBApplications
    s = mbx.Name
    If s.ToLower = "relevantapp.mbx" Then 'found it
        Exit For
    End If
Next

Then it's just a question of invoking mbx.Do('xxxx') or mbx.Eval('xxxx')

Remember that .net is case sensitive, most likely also with the mbx file 
names. Thus the ToLower string comparison.

A caveat I found, is that mbx objects need to be defined as "Object". 
The MapInfo Interop assembly doesn't seem to handle it very well as a 
typed variable.


Best regards / Med venlig hilsen
Lars I. Nielsen
GisPro



Cory Martin wrote:
> I've never had any problem sending commands to MapInfo from a VB.NET 
> application. I can run all sorts of MapBasic commands and launch MBXs. 
> But I haven't figured out how to reference the individual MapBasic 
> applications I've started to access their RemoteMessageHandlers or 
> invoke their RemoteQueryHandlers. How does one properly set this up in 
> VB.NET?
>
> Best regards,
> Cory Martin
> _______________________________________________
> MapInfo-L mailing list
> [email protected]
> http://www.directionsmag.com/mailman/listinfo/mapinfo-l
>


------------------------------

Message: 2
Date: Fri, 6 Oct 2006 21:40:12 +0200
From: Peter Horsb?ll M?ller <[EMAIL PROTECTED]>
Subject: RE: [MI-L] Dynamic expressions in select clauses
To: "Spencer Simpson" <[EMAIL PROTECTED]>,      "Francois Blanc"
        <[EMAIL PROTECTED]>,    <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Or you could use the Alias variable to hold the table and column names
 
Dim aCol As Alias,

    selColumnId as integer,

    selColumnName as String

 

    selColumnId     = <number retrieved from dialog>

    selColumnName   = ColumnInfo(MyTable,"col"+selColumnId,COL_INFO_NAME)

    aCol            = "MyTable." &  selColumnName

 

    select aCol 

        from MyTable

 
HTH,
 

Peter Horsbøll Møller 
GIS Developer, MTM 
Geographical Information & IT 
  
COWI A/S 
Odensevej 95 
DK-5260 Odense S. 
Denmark 
  
Tel     +45 6311 4900 
Direct  +45 6311 4908 
Mob     +45 5156 1045 
Fax     +45 6311 4949 
E-mail  [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
http://www.cowi.dk/gis 

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Spencer Simpson
Sent: Thursday, October 05, 2006 4:56 PM
To: 'Francois Blanc'; [email protected]
Subject: RE: [MI-L] Dynamic expressions in select clauses



Run Command "Select"+selColumnName+" from "+MyTable

 

or 

 

Run Command "Select"+selColumnName+" from MyTable"

 

depending on whether MyTable is a variable or not.

 

HTH

Spencer

 

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois Blanc
Sent: Thursday, October 05, 2006 10:23 AM
To: [email protected]
Subject: [MI-L] Dynamic expressions in select clauses

 

Hi,

 

I have been trying unsuccessfully to pass a dynamic expression into a select 
clause in MapBasic. I thought it would be straitforward but somehow it is 
trickier than I expected. Here is what I did

 

First I retrieved column number n in MyTable from a list in a dialog box (works 
fine). I would then like to select that column from the table. I wrote the 
following code:

 

  Dim selColumnId as integer

  Dim selColumnName as String

  selColumnId = <number retrieved from dialog>

  selColumnName = ColumnInfo(MyTable,"col"+selColumnId,COL_INFO_NAME)

  select selColumnName from MyTable

 

This gives me a single column filled with the String <columnName>. Any idea how 
I should proceed instead?

 

Thanks,

 

 

Francois Blanc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.directionsmag.com/pipermail/mapinfo-l/attachments/20061006/9786e824/attachment-0001.htm

------------------------------

Message: 3
Date: Sat, 07 Oct 2006 14:02:09 +0000
From: "h mangan" <[EMAIL PROTECTED]>
Subject: [MI-L] Geo-coding
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I'm new to MapInfo & trying to re-geo code a list of POI's I was given that had 
inaccurate geo-references. The file was in CSV format.

I opened the CSV file in MapInfo, created points using the incorrect X,Y's to 
view these points against my background map (of Dublin, Ireland). I then made 
the layer editable and where necessary dragged the points to their correct 
location.

I then saved the layer, and exported it as a MIF file. I then re-imported the 
MIF file to check that points I'd moved where in their new correct location. 
They were.

BUT the data in the X,Y column in the attribute table of the still holds the 
original incorrect value. I know I have to use the Table / GeoCode dialog box, 
to update this, but I can't figure out how.

Can anyone suggest a decent on-line guide, I guess a little knowledge is a 
dangerous thing.

I'm using MapInfo Prof 7.5

Thanks, Hugh.



------------------------------

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


End of MapInfo-L Digest, Vol 12, Issue 20
*****************************************
------------------------------
Cairns City Council Disclaimer
------------------------------
"This message, and any attachments, may contain privileged and confidential 
information intended only for the use of the intended addressee(s).  Any 
unauthorized use of this material is prohibited.  If you receive this message 
in error, please notify the sender immediately, delete the message and destroy 
any printed or electronic copies.

Opinions expressed in this e-mail are those of the sender and do not 
necessarily represent the views of the Cairns City Council.  Council does not 
accept any responsibility for the loss or damage that may result from reliance 
on, or the use of, any information contained in this e-mail or attachments."
------------------------------

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to