Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
If you want to display the results of your SELECT - SQL statement, you can send the results to a window. The Browse window is the default destination for query results and you don't need to include a destination clause. You can also send the results to the main Visual FoxPro window or another active window.
To display results in the main Visual FoxPro window
- Use the TO SCREEN clause of a SELECT - SQL statement.
To display results in another active window
- Define a window, show it to activate it, and then run a SQL query or other command that displays results in a window.
This code example shows the definition for a temporary window titled "Top Customers" that displays the names of companies with more than $5,000 in total orders for the year.
Displaying query results in a window
Code | Comment |
---|---|
|
Create and start a temporary window object. |
|
Enter a SELECT - SQL statement. |
See Also
Printing Query Results in a Report or Label | Creating Reports and Labels | SELECT - SQL Command