Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sum numbers in a field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01569439
Message ID:
01569443
Vues:
57
Thanks Borislav

Could you explain how "&" executes the sum ?

I have used "&" to other things but didn't understand how it works.

Moises



>>Is it easy to sum numbers (characters )separated by comma to variable ?
>>
>>e.g. "30, 32, 10, 1000," = 1072
>>
>>I could use a child table to achieve it but I think it would be easy in a unique table.
>>
>>Moises
>
>
>m1 = "30, 32, 10, 1000"
>m2 = CHRTRAN(m1,",","+")
>? &m2
>
>
>But you should remove last comma first.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform