我看到弹出消息框的一些代码前加上set talk on 这个主要其什么作用阿?
------解决方案--------------------------------------------------------
显示命令结果
VFP HELP
Determines whether Visual FoxPro displays command results.
SET TALK ON | OFF | WINDOW [WindowName] | NOWINDOW
Parameters
ON
(Default) Allows talk to be sent to the main Visual FoxPro window, the system message window, the graphical status bar, or a user-defined window. If SET TALK is set to OFF and is then changed to ON, the talk is directed to the same location it was sent to before you issued SET TALK OFF.
OFF
Prevents talk from being sent to the main Visual FoxPro window, the system message window, the graphical status bar, or a user-defined window. Note that for in-process .dll automation servers the default setting of SET TALK is OFF.
WINDOW [ WindowName]
WindowName specifies a user-defined window to which talk is directed. You must create the user-defined window before directing talk to it. Talk is directed to the Visual FoxPro system window if the window you specify doesn 't exist.
NOWINDOW
Directs talk to the main Visual FoxPro window.
Remarks
Some table processing commands return information, or "talk, " about their status while they execute. These commands include:
Commands
APPEND FROM
PACK
AVERAGE
REINDEX
CALCULATE
REPLACE
COPY TO
SELECT - SQL
COUNT
SORT
DELETE
SUM
INDEX
TOTAL
Talk can be directed to the main Visual FoxPro window, the graphical status bar, or a user-defined window. Talk can also be turned off.
The SET TALK reporting interval can be specified with SET ODOMETER. The default value for SET ODOMETER is 100. Note that execution speed can be degraded when SET TALK is set to ON, because the main Visual FoxPro window or user-defined window must be frequently updated. If you just need the total number of records processed by a command, you can issue SET TALK OFF and display the _TALLY system variable once the command has completed executing.
SET TALK is scoped to the current data session.