Hi Steven,

You are correct, the problem is the column name.  You need to use the Alias
variable.  Try creating an alias variable...
****************************************************************************
********************************************
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
****************************************************************************
********************************************
Hope that this helps,
Mark Crompton
mailto:[EMAIL PROTECTED]



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 23, 2000 8:05 AM
To: [EMAIL PROTECTED]
Subject: MI thematic mapping problem


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]

Reply via email to