Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Increment variable
Message
From
27/11/2008 19:17:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/11/2008 11:44:10
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01364394
Message ID:
01364442
Views:
12
>Hi.
>I know that vFoxPro has another way
>to increment a variable than the
>traditional
>
>vMyVar = vMyVar +1
>
>but I can't remember it.
>Thanks in advance.

C-style languages have
vMyVar++
* or
vMyVar += 1
But in Visual FoxPro, this is about as short as it gets.

STORE has the advantage that you can quickly save the same value to several variables.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform