Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The mighty Calculate
Message
From
15/08/2019 16:49:38
 
 
To
15/08/2019 16:03:04
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01670101
Message ID:
01670111
Views:
55
>All,
>
>Current work creates opportunities for me to use antique FP features dating from days when memory was limited and processors slow, so efficiency mattered a lot. Often these old-timers perform better than more recognizable/mainstream ways of doing things. My earlier COPY TO ARRAY example is a good one.
>
>CALCULATE is another good example. CALCULATE AVG(field1),SUM(field2),MAX(field3) to myvar1,myvar2,myvar3 is quicker than SQL or other mainstream ways of performing the same calculations.
>
>For VFPA, Chen has done some work on Calculate that will be of interest if you're into AI or encryption with their need for bit manipulation in tight loops, where VFP's 4GL baggage can make things a bit slow. Stay tuned!

Yes, on the occasions I've used CALCULATE I've been impressed with its speed.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform