关于@deletefield的用法
field 域名:=@deletefield
然后保存,结果文档中该item依然存在。
使用removeitem 同样不起作用
为什么,期待高手
问题点数:20、回复次数:5Top
1 楼chenjj2002(boheye)回复于 2005-08-03 16:06:09 得分 0
不是高手,但刚刚用过,用的是这种方法:Call doc.RemoveItem( "$FILE" )
Call doc.Save( True, True ),删除是成功的。在帮助里能找到。Top
2 楼xjunhua(沉思的森林)回复于 2005-08-03 16:27:21 得分 0
Deletes the value of an editable field.
Syntax
FIELD fieldName := @DeleteField
Usage
This function works in agent, view action, and toolbar button formulas.
If the field has a default value, the default value is reinstated after this function deletes the current value.
很明显,@deletefield 是删掉这个域的值,而不是域本身
Top
3 楼he_mei_123()回复于 2005-08-04 09:08:17 得分 0
奇怪,我的帮助上是这样写的:
@DeleteField
在运行公式的代理中,由 @DeleteField 删除指定的域。
语法
@DeleteField
用法
在运行公式的代理中,此函数最为有用。它不能用于列公式或选择公式中,也不能用于窗口标题或表单公式中。
样例:@DeleteField
此样例从由宏处理的每个文档中删除名为 RoutingList 的域。
FIELD RoutingList:=@DeleteField;
该语句等价于:
FIELD RoutingList:=@Unavailable;
@Unavailable 使用本函数删除某一个域。
语法
FIELD fieldName = @Unavailable
返回值
无。
怎么回事呢?难道帮助翻译得不正确?我用的是5.0.10版本Top
4 楼he_mei_123()回复于 2005-09-26 12:24:28 得分 0
我看了一下,5.0.10与6.5.4中的帮助关于@DeleteField的描述是不一致的
这是6.5.4的:
@DeleteField
Example
Deletes the value of an editable field.
Syntax
FIELD fieldName := @DeleteField
Usage
This function works in agent, view action, and toolbar button formulas.
If the field has a default value, the default value is reinstated after this function deletes the current value.
This function is the same as @Unavailable.
Use this function to delete invisible fields from documents, such as fields created using the @SetField function.
Language cross-reference
Clear method of LotusScript NotesUIDocument class
RemoveItem method of LotusScript NotesDocument class
Remove method of LotusScript NotesItem class
removeItem method of Java Document class
remove method of Java Item class
Example
See Also
Accessing the current document in the formula language
@Functions with ECL security
Working with @functions
"Creating a sent mail folder" on the Lotus Developer Domain
Fields
上一个是5.0.10的Top
5 楼qiuyang666(心雪峰)回复于 2005-09-27 08:19:48 得分 0
我帮你们顶一下。。。讨论帮助。。。。hahaTop




