Skip to main content
added 8 characters in body
Source Link
Nathan W
  • 35k
  • 5
  • 99
  • 148

I have a query regarding the Mapbasic feature of MapInfo, I want to change the line style of an item depending on name (e.g if the .tab name contains the world group). I think I can work this out with a few bits of syntax help. So for example if I change one tab this appears in the MapBasic window

" Set Window 376609128 Front Set Map Window 376609128 Layer 10 Display Global Global Line (2,2,16711680) Arrows On"

Set Window 376609128 Front
Set Map Window 376609128  Layer 10 Display Global    Global Line (2,2,16711680)    Arrows On

Would I need to write a statement similar to if contains "xx" then do that? I have a very basic knowledge of scripts syntax but is my basic understanding correct, would this be the way to do it?

Thanks, Alan

I have a query regarding the Mapbasic feature of MapInfo, I want to change the line style of an item depending on name (e.g if the .tab name contains the world group). I think I can work this out with a few bits of syntax help. So for example if I change one tab this appears in the MapBasic window

" Set Window 376609128 Front Set Map Window 376609128 Layer 10 Display Global Global Line (2,2,16711680) Arrows On"

Would I need to write a statement similar to if contains "xx" then do that? I have a very basic knowledge of scripts syntax but is my basic understanding correct, would this be the way to do it?

Thanks, Alan

I have a query regarding the Mapbasic feature of MapInfo, I want to change the line style of an item depending on name (e.g if the .tab name contains the world group). I think I can work this out with a few bits of syntax help. So for example if I change one tab this appears in the MapBasic window

Set Window 376609128 Front
Set Map Window 376609128  Layer 10 Display Global    Global Line (2,2,16711680)    Arrows On

Would I need to write a statement similar to if contains "xx" then do that? I have a very basic knowledge of scripts syntax but is my basic understanding correct, would this be the way to do it?

Thanks, Alan

Source Link
Alan Carr
  • 2.5k
  • 6
  • 29
  • 44

Modifying tables based on title (MapInfo)

I have a query regarding the Mapbasic feature of MapInfo, I want to change the line style of an item depending on name (e.g if the .tab name contains the world group). I think I can work this out with a few bits of syntax help. So for example if I change one tab this appears in the MapBasic window

" Set Window 376609128 Front Set Map Window 376609128 Layer 10 Display Global Global Line (2,2,16711680) Arrows On"

Would I need to write a statement similar to if contains "xx" then do that? I have a very basic knowledge of scripts syntax but is my basic understanding correct, would this be the way to do it?

Thanks, Alan