Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set order / private datasession
Message
From
14/11/2001 11:00:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00581452
Message ID:
00581550
Views:
23
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform