Hello everyone,

I'm coding a Mapbasic application that creates a ranged values thematic map using arrays to pass the intervals and styles to the shade statement:

  shade 1
    with ID
    ranges
    apply color
    from variable fl_aThemRanges
    style variable br_aThematicStyle

The thematic so created is similar to one created interactively apart from the 'all others' default style. Despite the MB manual implying that a default line can be added to the shade statement, the compiler does not accept this:

  shade 1
    with ID
    ranges
    apply color
    from variable fl_aThemRanges
    style variable br_ThematicStyle
    default Brush (2,15597520,16777215)

Returning the error 'Unrecognised command default'. When a thematic is created using the array method and then a workspace saved, the default style is set to something along the lines of brush(0,0,0).

I have tried making the style array one larger than necessary, hoping (!) if the default value would be read from this, but without success.

Has anyone come across this before, and if so, does a workaround exist?

Cheers,

Andrew

--
----------------------
Andrew Harfoot
Geodata Institute
University of Southampton

tel: +44 (0) 23 80592719
fax: +44 (0) 23 80592849
[EMAIL PROTECTED]
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to