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
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:[
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
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
---
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
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
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