Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting output to screen when running a form in VFP 9.0

576 views
Skip to first unread message

Deborah

unread,
Sep 4, 2006, 11:26:49 AM9/4/06
to
I recently started to use VFP 9.0. On one particular form I am running, I
get output on the screen like "Selected 63 records in 0.01 seconds" followed
by a list of the data that was selected. The only difference between this
form and the others I am using is that its dataenvironment is using two
views. I have played around with SET CONSOLE, but with inconsistent
results - sometimes I get the output to screen, sometimes I don't, and I
can't figure out how to stop it!

Can anyone please offer any suggestions or advice on how to stop this from
happening. I have never experienced it before in earlier versions of VFP -
but come to think of it, I never used views before!!

Many thanks - Debbie


Alex Feldstein

unread,
Sep 4, 2006, 3:01:08 PM9/4/06
to
On Mon, 4 Sep 2006 11:26:49 -0400, "Deborah" <brit...@hotmail.com>
wrote:


Place SET TALK OFF in the Load() method of the form.
Note that SET TALK OFF is scoped to the datasession.

PS: Please do not crosspost. Just post the question in the most
appropriate forum (progabky forms in this case)

Alex Feldstein
________________________________
Microsoft Visual FoxPro MVP

Please respond in the public groups so that everybody
can benefit from the exchange.
Favor de responder en los foros públicos asi todos se benefician.
(address munged with ROT-13)

Blog: http://alexfeldstein.blogspot.com
Website: http://www.feldstein.net

Dan Freeman

unread,
Sep 4, 2006, 3:05:38 PM9/4/06
to
SET TALK OFF in your form's dataenvironment load method. The default is ON
and it's scoped to the Datasession (i.e. it's ON for each).

Dan

Debbie

unread,
Sep 8, 2006, 7:52:32 PM9/8/06
to
All of my form classes are already coded with SET TALK OFF in the Load
method.

Out of curiosity, I added SET CONSOLE OFF to the DataEnvironment's Load
method and that seemed to fix my problem. But why or how I do not know
because when I test the setting of CONSOLE after the form has loaded it
returns ON!!! Does that make any sense to you?


"Dan Freeman" <sp...@microsoft.com> wrote in message
news:urKIgUF0...@TK2MSFTNGP05.phx.gbl...

Laurentiu

unread,
Sep 14, 2006, 3:10:22 AM9/14/06
to

Debbie a scris:
Very interesting, maybe i'm wrong but where's the Load Method in DE ?
I havent' seen it.
And, of course, in the good FOXPRO fashion way, even after placing
SET CONSOLE OFF, SET TALK OFF in Load method of the form, and INIT (or
maybe BeforeOpenTables) the message remains, throwing dirt into the
visual aspect of my application. I hope I will find a solution for one
of these examples of curious ( or bad )
behavior of this language.

vita...@gmail.com

unread,
Sep 19, 2006, 4:15:10 PM9/19/06
to
There is a BeforeOpenTables() method in the Data Environment. The
problem with putting it in the Load of the form is that the data
environment has already opened the views so it won't stop things from
being written to the console.

HTH,
Andrew

0 new messages