Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Increment variable
Message
 
À
27/11/2008 19:17:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01364394
Message ID:
01364444
Vues:
16
>>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!
____________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform