Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The mighty Calculate
Message
From
15/08/2019 16:03:04
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
The mighty Calculate
Miscellaneous
Thread ID:
01670101
Message ID:
01670101
Views:
77
Likes (1)
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!
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Next
Reply
Map
View

Click here to load this message in the networking platform