如何在lotus Script程序中用@公式?

xy80 2002-01-30 01:58:26
看到有在lotus Script程序中用@公式的情况,很简便,可是找不到如何使用的介绍,哪位大侠知道请不吝告知。多谢。
...全文
204 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
xy80 2002-01-31
  • 打赏
  • 举报
回复
多谢各位!
to tnda(虎头): 不好意思,前面看到你一大段英文,没来得及好好看完就先晕了。至于给分,20分/页的话,我大概只能看10页,还是等有空再自己学吧。 :)
linshao16 2002-01-30
  • 打赏
  • 举报
回复
执行代理(Notesagent),代理用公式
虎头是我 2002-01-30
  • 打赏
  • 举报
回复
: xy80() 你也真够懒的,连帮助不愿找,
不过如果你愿意给分,我可以拷贝帮助给,20分/页,共5697页
zswolf 2002-01-30
  • 打赏
  • 举报
回复
在Lotus Script中使用公式语言需要用到Evaluate语句,调用的格式如下:
returnValue = Evaluate( notesFormula [, notesObject ] )
各个参数的意义:
notesFormula------要调用的公式
notesObject-------此公式作用的对象。譬如要修改文档中的某个域,这个对象就是该文档。
returnValue-------返回值。要定义为一个类型为Variant的变量来存放返回值

要注意的是,一些与用户界面相关的函数例如@DialogBox等不能这样调用。
xy80 2002-01-30
  • 打赏
  • 举报
回复
多谢。有没有中文的啊?英文的看得直晕.
虎头是我 2002-01-30
  • 打赏
  • 举报
回复
LOTUSSCRIPT LANGUAGE
Execute function and statement

样例
Compiles and executes a text expression as a temporary module.
Statement Syntax
Execute text
Function Syntax
Execute ( text )
Elements
text
A string expression specifying the text to be compiled and executed.
Return value
The Execute function returns one of the following values:
The return code of an End statement, if one was executed.
Zero (0), if no End statement was executed, or if the executed End statement had no return value.
Usage
LotusScript considers text a separate script, compiling and executing it as a temporary module that's unloaded as soon as execution finishes.
Variables declared in the calling script (where the Execute statement appears) are only accessible in the temporary module if they are declared Public. Both these Public variables, and variables declared Public in external modules used by the calling script, will be accessible automatically. To reference a local variable in the temporary module, use the CStr function to convert its value to a string, and then include the result in text.
Variables declared in the temporary module are not accessible outside of that script.
To delimit text that spans several lines or includes double-quote characters, use vertical bars (| |) or braces ({ }).
Any compilation error in the temporary module will be reported as a run-time error in the scope containing the Execute statement. Any run-time error in the temporary module will be reported as a run-time error within the scope of that module, not the scope containing the Execute statement. To handle run-time errors within the temporary module, use the On Error statement.
The Execute statement is not legal at the module level; you can use it only in procedures.
注释 In Lotus Notes, if you modify a global variable in an Execute statement, the variable must be defined in the (Declarations) event for (Global), not the (Declarations) event for the object containing the script.
样例
相关主题
Use statement
Dim statement
End statement
On Error statement



术语表

虎头是我 2002-01-30
  • 打赏
  • 举报
回复
Execute ( text ),详细情况看帮助

535

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧