Hi listers,
I'm writing a tool that generates some thematic maps and I'm having
trouble with the restrictions of the Style statement to take variables.
Does anyone know if it's possible to use the 'Create Styles' command
specifying From and To Styles as a variable?
This is the code that I expected to work:
Dim min_style, max_style, line_styles () As Pen
'min_style and max_style can in the actual tool be changed by the user
min_style = MakePen(2,2,255)
max_style = MakePen(2,2,12345)
Create Styles
From min_style
To max_style
Vary Color By "HSV"
Number 16
Into Variable line_styles
I tried all sorts of workarounds to define the Pen statement but nothing
works. A 'Run Command' command can't be used because the result is in
turn passed into a variable.
Any ideas?
Many thanks,
Jorge
_________________
Jorge Gil
Simulation Developer
SPACE SYNTAX