Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reverse comma-delimited string
Message
From
05/09/2019 15:54:51
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
05/09/2019 09:10:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01670542
Message ID:
01670630
Views:
73
Likes (1)
>> And thought that I had been through it all. Certainly not. I learned quite a few tricks reading this great resource.

Recently I dug out one of Tamar's historic articles wrt a parsing need. The article covered the ancient Copy to Array that is very quick for smaller resultsets and resulted in new functions in VFPA to speed up bit manipulation- check out VFPA's new Calculate BOR/BAND expressions.

I learned something else new last week: GATHER performs on-the-fly casting for different field types.
create cursor c_test (intvar i, dubvar B, charvar c(20),datevar c(20))
append blank
intvar="100"  && I am a string, about to be GATHERed into an Integer field
dubvar="100" && I am a string, about to be GATHERed into a Double field
charvar=100 && I am a numeric, about to be GATHERed into a string field
datevar=date() &&I am a date, about to be GATHERed into a string field
gather memvar
browse
Who'd have thunk it? Still learning new tricks after all these years.
"... 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform