Just check if your table name has space in it
(Many a times if you use table name as variable and
that variable contains any space you will get the name as MI does not
allow table name with space)
From: "Bergeron, Francois" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: MI MapBasic: Add Column Problem
Date: Tue, 27 Jul 1999 15:31:39 -0400
Hi All,
I need Help! I got a problem with MapBasic. Is there a way to pass
a variable (Value of field name) into the "Set To sum( ) parameter of the
"Add Column" statement? Look at my example:
--------------
Table_Date: Name of a point Table
Table_Buffers: Name of a polygon Table
Accident: Real name of a field (Table_Data)
Dim ColName As String
ColName = "Accident"
--------------
1.
Add Column "Table_Buffers" ( ColName + "(Somme)" Float) From Table_Data Set
To sum(Accident) Where within Dynamic
IT WORKS WELL!!
2.
Add Column "Table_Buffers" ( ColName + "(Somme)" Float) From Table_Data Set
To sum(ColName) Where within Dynamic
PROBLEM!! :-((
Error message: Expression does not evaluate to a column or table name.
Any suggestion? THANKS!
Fran�ois Bergeron, Conseiller en G�omatique
Minist�re des Transports du Qu�bec, Montreal
Direction des technologies de l'information
Service � la client�le (Soutien G�omatique)
T�l�phone: (514) 873-4293
E-Mail: [EMAIL PROTECTED] ou [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]
===================================================
Aditya
Executive (Systems)
Information Systems Department
GCMMF, Anand
E-mail me at Mailto:[EMAIL PROTECTED]
Web Site: http://www.amul.com
===================================================
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]