Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Increment variable
Message
De
27/11/2008 19:17:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
27/11/2008 11:44:10
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:
01364442
Vues:
11
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform