Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sum many field at my grid
Message
De
23/04/2005 17:18:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Sum many field at my grid
Versions des environnements
Visual FoxPro:
VFP 5
Database:
Visual FoxPro
Divers
Thread ID:
01007831
Message ID:
01007831
Vues:
67
hi,
i want to sum many field at my grid,
and i need to make this operation for every fields at mygrid

as under thisform.grid1.column1.text1 && i put this code under
how i can do that as new method, or another way
REPLACE sum1 WITH d1 + d2 + d3+d4+d5+d6+d7+d8+d9+d10

REPLACE sum2 WITH d11 + d22 + d33+d44+d55+d66+d77+d88+d99
if sum1=0 or sum2 =0
    replace sum3 with 0
else
if  sum1<0 or sum2 <0
= messagebox("this is rong")
else

  replace sum3 with (sum2/sum1)*100
endif
endif
thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform