Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sum many field at my grid
Message
From
27/04/2005 04:50:31
 
 
To
27/04/2005 04:45:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01007831
Message ID:
01008761
Views:
16
hi,
thank you for reply,
but i found the error ,
i put the code under new method , and i call it via the start of operation, it works.
b.regards.
m.qasem
>Mohammed,
>
>You could use a view and define a field MyCalculation as a function.
>
>
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform