Does it look somewhat familiar?Looks like a wrapper for SPT, which (as everybody knows) isn't as good as a SP. ;-)
Trouble is, you *still* can't do it against a resultset in SSCE, despite the fact that various luminaries keep telling us that SSCE is the ideal replacement for VFP cursors.
Yet we keep being told that it is publicly available and people need to look before they speak.
"... 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