Information générale
Catégorie:
Codage, syntaxe et commandes
>>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.
I placed set talk off/set notify off in the forms INIT and LOAD events.
I changed the VFP defaults to not display system messages or command
results. Bit I still_ get "n records selected..."
The client doesnt want the status bar on.
???
Chris
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement