Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set order / private datasession
Message
De
14/11/2001 11:00:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00581452
Message ID:
00581550
Vues:
24
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform