>Otherwise you can pass Form's DS as a parameter. My colleagues use SET DATASESSION to lnPassedDS lots of times in a code without problems...
Thanks, Nadya and Çetin, for your assurance.
The reason I needed this is because the framework I use remembers current set("order"), but my users sometimes want to see data in the order it was input. Helps them finding data, apparently.
I have created a generic function to do this for the current form. This function included the following commands:
loForm = _vfp.ActiveForm
...
lnDataSession = set("datasession")
set datasession to loForm.DataSessionId
set order to
set datasession to lnDataSession
Plus other, framework-specific, commands, and validity checks.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)