我们最近购买了Windows8作为Visual dBASE的替代品,它不再适用于Windows7/8 64位。我们不打算将其用于编程,而只是用于.dbf文件的简单操作,如添加或删除列、过滤和导出等。
将dBASE 8设置为.dbf文件的默认程序后,双击.dbf文件会自动打开并显示该表。
Visual DBase用于自动向命令窗口添加一行,如下所示
use "c:\some\dir\table.dbf"输入到该窗口中的任何命令都将在该表上工作。这在dBASE 8中似乎有所不同。上面的行没有添加,如果我输入了一个需要打开表的命令,比如
set filter to strasse="blablub"我看到了文件打开对话框。
有没有办法找回“旧”的行为?或者,有没有什么简单的方法可以切换到已经显示的表,而不必再次键入名称或在文件打开对话框中选择它?
发布于 2014-02-21 00:07:26
我在dbase新闻组中得到了一个answer,它解决了部分问题
此程序
**********************
* GrabBrowse.prg
* Catches the table that was opened in an instance of PLUS
* by double-clicking on a table in Windows Explorer.
* Sets the query as _app.q.
* Reports the tablename.
* Returns the query.
* Opens the table with USE.
private q
q = findinstance("query")
? q.rowset.tablename
_app.q = q
if not empty(findinstance("query", q))
msgbox("There is more than one query active: ";
+ findinstance("query", q).rowset.tablename ;
+ chr(13) + "But still put in _app.q and USEd.", ;
"GrabBrowse", 48)
endif
use (q.rowset.tablename)
return (q)
**********************存储在dBASE搜索路径中的文本文件中,并使用
do GrabBrowse切换到该表,因此任何命令都会影响该表。例如:
set filter to strasse="blablub"将为该表设置过滤器。不幸的是,这不会影响已经打开的浏览窗口,但只会影响随后打开的窗口。
但这只是部分解决方案。
https://stackoverflow.com/questions/21887798
复制相似问题