决定 Visual FoxPro 是否显示系统时钟,也可以指定系统时钟在 Visual FoxPro 主窗中的位置。
语法
SET CLOCK ON | OFF | STATUS
— 或者 —
SET CLOCK TO [nRow, nColumn]
参数
ON
在 Visual FoxPro 主窗口的右上角显示时钟。
OFF
(默认值)从 Visual FoxPro 主窗口中或状态栏中移去时钟。
STATUS
仅用于 Visual FoxPro,FoxPro for Windows 和 FoxPro for Macintosh。
在图形状态栏中显示时钟。执行 SET STATUS BAR ON 命令可显示图形状态栏。
在 FoxPro for MS-DOS 中不起作用。
TO [nRow, nColumn]
使用行和列的坐标,指定时钟在 Visual FoxPro 主窗口中的显示位置。不带坐标参数使用 SET CLOCK TO 时,时钟显示在 Visual FoxPro 主窗中右上角的默认位置上。
在 Visual FoxPro,FoxPro for Windows 和 FoxPro for Macintosh 中,如果使用 SET CLOCK STATUS 命令将时钟设置在图形状态栏上,又使用 TO nRow, nColumn 在 Visual FoxPro 主窗口中给时钟指定一个位置,Visual FoxPro 将时钟放在指定的位置上,而不放在图形状态栏中。