How to edit the SQL-SELECT statement of a remote or local view in Visual FoxPro 7.0 and earlier versions (174807)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Macintosh 3.0b
- Microsoft Visual FoxPro for Windows 7.0
This article was previously published under Q174807 SUMMARY
Sometimes a programmer may want to create a remote or local view that the
View Designer cannot produce. Unfortunately, in Microsoft Visual FoxPro 7.0 and earlier versions, there is no way to directly
edit the SQL-SELECT statement generated by a remote or local view in the Database
Designer. You can paste it into a .prg file and then edit the code.
However, this will not save changes back to the database container. You can
programmatically create a view using the CREATE SQL VIEW, but then you must
set all the properties using the DBSetProp() function. An easier method is
to design as much of the view as possible within the Database Designer and
then run Gendbc.prg to obtain the code. You can then modify the SQL-SELECT
statement, add the necessary changes, and write the new view back to the
database.
Note The View Designer in Visual FoxPro 8.0 and later versions incorporates the abilility to directly edit and save the SQL-SELECT statment and other properties that are used in a local or remote view.)
Modification Type: | Major | Last Reviewed: | 3/15/2005 |
---|
Keywords: | kbDatabase kbhowto kbSQLProg KB174807 |
---|
|