Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sum many field at my grid
Message
From
23/04/2005 17:18:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Sum many field at my grid
Environment versions
Visual FoxPro:
VFP 5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01007831
Message ID:
01007831
Views:
68
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.
Next
Reply
Map
View

Click here to load this message in the networking platform