Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set defaults in private data sessions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00409636
Message ID:
00409651
Vues:
20
Hi Gerard,

As Mark has told yoy, running an object method to set the environment won't help, because it runs in that object's datsession. The way I do this is have a prg (or procedure in a prg file) called SetPrivateDataSessionEnvironment. UDFs run in the datasession of the object that calls them.

Cheers,

Andrew




>I have a form whose data session property is set to Private.
>But cant get Set Exact on to be set.
>I have done the following:
>
>1. Set up oApp.SetDefaultproperty which: Set Exact On
>2. In my Base Form Class , in the LOAD event:-
> oApp.SetDefaults
>
>But the following is happening:
>When my Base Class Runs: it does set exact on
>(I have a Wait Window in the My Base Class Load Event which shows this)
>
>In the Form Itself Load Event I Have:
>DoDefault()
>Wait Window 'Set exact=' + Set('EXACT')
>... and this shows that Set Exact is OFF
>
>It appears that the something has changed the setting between
>the time the Base Class Load code runs and he time the actual form code runs.
>
>Would anybody have any ideas why this is happening ?
>
>Regards,
>
>Gerard


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform