Carlos,
 
Use the run command solution; it allows for passing variables. In your case
 
dim comm as string
 
comm=" Create Styles From   " +MIBrushLOW + "To "+MIBrushHIGH
       +"Vary   Color By ''"RGB''"  Number 10 Into   Variable Brush_Styles"
run command comm
 
Make sure of the required number of " when passing a ", I always forget it it "" or """. Sorry about that
You may also to check if Brush_styles is properly handled, It may have also to be passed as a variable.

Jacques Paris     [EMAIL PROTECTED]  

Paris PC Consult (mainly MapInfo app.)
     www.total.net/~rparis/gisproducts.htm

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Carlos Montalvillo
Sent: June 14, 2000 6:14 AM
To: [EMAIL PROTECTED]
Subject: MI Create Styles


   Hello,

   I was wondering if anyone had any ideas on this one.  

   I would like to create styles defining the color ranges from a variable.

   For example :

       Dim MIBrushLOW, MIBrushHIGH as Brush

       (...)

       Create Styles
       From   MIBrushLOW
       To     MIBrushHIGH
       Vary   Color By "RGB"
       Number 10
       Into   Variable Brush_Styles 

   But MapBasic stands a constant value for FROM and TO. How can I solve it ?

   Thanks, any ideas would be greatly appreciated.

Carlos Montalvillo Gómez
SGSMap - Ingenieros Consultores
Camino de Portuetxe, 83
20018 - San Sebastian - España
Tel (+34) 943 31 74 90
http://www.sgsmap.com/
mailto:[EMAIL PROTECTED]


Reply via email to