Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private data session
Message
De
25/02/1997 13:19:09
 
 
À
25/02/1997 12:40:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00021964
Message ID:
00021974
Vues:
41
>I have a form based on a query that calles another
>form based on another query. They conflicted so
>I put the second form in a proivate data session.
>
>The problem is that when the second form opens and requerries somthing like "One record selected in .09
>sec" appears on the FIRST form and I cant suppress it.
>
>Talk is set off in both forms..
>
>Any Ideas?
>

I guess that SET TALK OFF is not being done before the query runs.

Because SET TALK is scoped to the DataSession, it will default to whatever is set in your VFP defaults - see Tools|Options on the menu.

If you want that not to appear, you can:
Change FoxPro's default
Put the SET TALK OFF in a method that's called before the query runs.
SET STATUS BAR ON

I guess you might be putting the SET TALK OFF in the INIT() of the form?

The event sequence is:

Form's LOAD
Every control on the form's INIT
Form's INIT

So if the SELECT was in the INIT() or called by the INIT() of a control on the form - putting SET TALK OFF in the form's INIT is too late.

If you are subclassing the DataEnvironment, put the call in there.
Check the method/event sequence by using the SOLUTIONS program that comes with VFP 5, or the SAMPLES program with VFP 3.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform