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