调用代理的各种方法和它们的不同之处
@Command([ToolsRunMacro];agent)
@Command([ToolsRunBackgroundMacros];agent)
@Command([RunAgent]);agent)
url/agentname?runagent
请问这些运行代理的方法有什么区别吗?每个代理都可以用@Command([ToolsRunBackgroundMacros]让它在服务器上运行吗?请各位高手慢慢说,慢慢数啊
问题点数:20、回复次数:2Top
1 楼xjunhua(沉思的森林)回复于 2005-08-03 09:36:54 得分 20
很好的问题,以前也没有怎么在意,查了帮助说明如下:
@Command([ToolsRunMacro];agent)
@Command([RunAgent]);agent)
这两个都是:
Executes a specified agent.
Parameters
agent
Text. Optional. The name of the agent you want to run.
When specifying a hidden agent, include the parentheses as shown below.
@Command([RunAgent];"(hiddenagentname)")
You can use this command in Web applications.
这两个的区别就是 @Command([RunAgent]);agent) 是R6新推出的,@Command([RunAgent]);agent)是马上执行代理,@Command( [ToolsRunMacro] ; agent ) 是在所有@function之后执行代理。
@Command([ToolsRunBackgroundMacros];agent)
这个的说明:
Runs all of the database's scheduled agents, regardless of when they are scheduled to run. The agents will then run as usual at their regularly scheduled times.
Syntax
@Command( [ToolsRunBackgroundMacros] )
Usage
This command executes after all @functions. Use @Command([RunScheduledAgents]) to execute immediately. See the Order of evaluation for formula statements topic for more details.
A database must be open or selected on the workspace.
This command does not work on the Web.Top
2 楼loadagain(最后一只妖怪)回复于 2005-08-03 19:20:39 得分 0
up,大家再数数Top




