lotus notes 开发常用方法[1]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 washing2000 的 blog

一、关于appenditemvalue

试试下面这个简单的例子:

dim ws as new notesuiworkspace

dim uidoc as notesuidocument

dim doc as notesdocument

set uidoc=ws.currentdocument

set doc=uidoc.document

for i=1 to 10

call doc.appenditemvalue("myitem",i)

next

call doc.save(true,true )

这个程序用以对当前文档增加10item,名字都叫myitem,但值从110不等。结果如何?用调试方式进行观察,发现:确实增加了10item,名字都叫myitem,但值却都是1!这与notes中的帮助不符。帮助里宣称:

if the document already has an item called itemname$, appenditemva

lue does not replace it.

instead, it creates another item of the same name, and gives it th

e value you specify.

^^^^^^^^^^^^^^^^^^^^

4.65.0结果都一样。

 

二、区分notes的前台类与后台类

由于两者的使用范围不一,在写程序时应注意这一点,尤其写代理时。如果在后台服务器运行的代理里加一句:

dim ws as new notesuiworkspace

代理运行日志报错:unkown error.

 

三、关于notesole的共享域

本文关键:lotus notes 开发常用方法
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top