Salut!

�a fais longtemps que j'ai pas fais de MapBasic...

mais moi j'essaierais de prendre un alias pour le nom de la variable...

ou bien, si tu veux �tre s�r du r�sultat, prend l'option RUN COMMAND pis
construit en string en une ligne l'instruction au complet.. genre :

Run Command "Add Column "+""""+Table_Buffers+""""+" ("+ ColName +
"""(Somme)"""+" Float) From "+Table_Data+" Set"
ainsi t� sur de ton coup, mais je sais pas si tu es un adepte de Run
Command...
au pire affiche a l ecran le r�sultat de la string pour voir

___________________________________

||    //            Antoine Gilbert
||   //              [EMAIL PROTECTED]
||  //                #ICQ 9737371
||  \\
||   \\        Le Groupe KOREM Inc.
||    \\      http://www.korem.com

3360, rue de La Perade, bureau 200
Sainte-Foy (Qc)   CANADA   G1X 2L7
___________________________________

To sum(Accident) Where within Dynamic
----- Original Message -----
From: Bergeron, Francois <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 27, 1999 3:31 PM
Subject: MI MapBasic: Add Column Problem


>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]
>

----------------------------------------------------------------------
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