Thanks to those who offered solutions. It works fine now.
solution 1:
Run Command "Create Ranges From water_levels With "+col_name+" Use ""Equal
Count"" Number 4 Round 0.1 Into Variable GW_ranges"
solution 2:
dim a as atring
a=" Create Ranges From water_levels With "+col_name+" Use """Equal
Count""" Number 4 Round 0.1 Into Variable GW_ranges"
run command a
solution 3:
Dim tMyAliasColName As Alias
Dim col_name As String
tMyAliasColName = col_name
Create Ranges
>From water_levels
With tMyAliasColName Use "Equal Count"
Number 4
Round 0.1
Into Variable GW_ranges
Steven Kalma
URS/Dames & Moore
The Netherlands
Email: [EMAIL PROTECTED]
Steven_Kalma@URSCor
p.com To: [EMAIL PROTECTED]
Sent by: cc:
owner-mapinfo-l@lis Subject: MI thematic mapping
problem
ts.csn.net
23-08-2000 17:04
Hi,
I am having some difficulties with a thematic mapping task with MapBasic.
Maybe someone out there in MapInfo land can help me?
I have an application in which I want to create a thematic map using 4
equal count ranges based on information from a given table (called "
water_levels"). The problem is that the column in the "water_levels" table
on which the thematic map is going to be created is not always the same.
The column name is stored in the string variable "col_name" and is in the
form "col4" etc.
The code that is causing problems is:
Create Ranges
>From water_levels
With col_name
Use "Equal Count"
Number 4
Round 0.1
Into Variable GW_ranges
At run time this results in an error of the form "Invalid variable type".
If I replace the variable "col_name" in the above code with col4 everything
goes fine, the only problem being that it is not always col4 which I want
to shade!
Anyone able to give me some advice?
Steven Kalma
URS/Dames & Moore
The Netherlands
Email: [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]