Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I prevent FORM1 from displaying values as program executes

Status
Not open for further replies.

smsmail

Programmer
Aug 11, 2010
105
US
Hello,

How do I prevent form1 from display values as program executes.

I am executing a loop and form1 display results of a select statement. How do I prevent this?

I have tried SET TALK OFF.

Thank you in advance

 
You need to add INTO CURSOR or INTO ARRAY to the end of your SELECT statement. For example:

Code:
SELECT AField, AnotherField FROM MyTable ;
  ORDER BY AField ;
  [b]INTO CURSOR MyCursor[/b]

Without the INTO clause, the query results will be sent to a Browse window, which is probably what you are seeing. By the way, it's got nothing to do with the fact that the form is closing; the same would happen with any SELECT statement.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Mike, Thanks again!

Added the cursors, the program is not displaying the browse window.

Again, I appreciate you help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top