Re: MI Is MapBasic essentially Visual Basic?

2000-01-14 Thread bryan_d
both use 'basic' type syntax but mapbasic is not an object orientated language. Also MB uses only a basic text editor, there is no automatic compilation, nice colour coding, or automatic drop down boxes with object/function names and stuff. also watch out for the endif statement - one sticks a

Re: MI ODBC Errors

1999-12-21 Thread bryan_d
This sounds like a problem we encountered in the summer (with MI 4.5). We were connecting to about 30 very similar Access queries (various parameter combinations). Two would not work. We fixed it by giving 2 similar field names aliases in the access queries : field2:[table1].fieldname, field3:[

RE: MI Zooming in to a selection

1999-12-01 Thread bryan_d
Dick told me this worked when I sent it (sorry, I thought it was straight forward so didn't bother to copy to the list). Find Selection doesn't zoom in if the selected item is in the view, however small it may be. So from his small scale map showing everything : Zoom in at random to a small a

Re: MI Populating an object's column with the Easting and Northing value s of the object

1999-11-24 Thread bryan_d
I'm sure this works instead and is simpler (I just checked it was OK on my machine with MI4.5) Bring up the map basic window (or in your application). Type the command "set coordsys table " where table name is an open table in Brit. Nat. Grid. centroid(x) and centroid(y) should now work ---

Re: MI Quick VB/MB string formatting question

1999-10-21 Thread bryan_d
If you definately need the file name then you'll have to parse the data to extract it. If MB isn't powerful enough VB definately will be. Use the instr function recursively to determine the position of the last "\", and ".tab". And then use mid() to extract the filename. But are you sure you need

Re: MI How to extract cursor location from point objects

1999-10-20 Thread bryan_d
It may be that the map projection of your points is not lat/long. CentroidX/Y use the current coordinate system which defaults to lat/long. Open mapbasic window and type "set coordsys table ". Centroidx/y whould then give you what you want. I use British National Grid and have to do this every ti

Re: MI Run Menu Command/icon in a dialog

1999-01-02 Thread bryan_d
Dear Damien, You need to use the shade command as follows : Add Map Window FrontWindow() Layer shade Window FrontWindow() 15 with values 0 Symbol (34,16711680,9) , 1 Symbol (34,65280,9) , etc to ... n symbol (34,256,9) this example works on layer number 15 and uses the "values