Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sum numbers in a field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01569439
Message ID:
01569443
Views:
56
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform