Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report form to file ascii
Message
From
31/01/2000 13:27:57
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00323789
Message ID:
00325160
Views:
30
>>>I guess doing the totals myself, in addition to a list, requires TWO scan statements.
>>
>>
>>lcOutput = ""
>>lnTotal = 0
>>SCAN
>>	lcOutput = lcOutput + SomeField + ": " + STR(SomeNumericField) + CHR(13)
>>	lnTotal = lnTotal + SomeNumericField
>>ENDSCAN
>>
>>lcOutput = lcOutput + "Total: " + ALLTRIM(STR(lnTotal))
>>
>>
>
>Well I guess you took care of that, Does 2 operations in this scan take a performance hit?

You'll have to tell me after you try it. I doubt it. Both String concatenation and simple arithmetic are very fast operations in VFP.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform