Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Increment variable
Message
 
To
27/11/2008 19:17:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
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:
01364444
Views:
17
>>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.

But as Dragan pointed out - VFP's Intellisense will expand myvariable++ to myvariable = myvariable + 1 automatically as soon as you key in a space after the ++.

Not the same as native language support, but a handy approximation.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform