CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  企业开发 >  Lotus

关于@deletefield的用法

楼主tina09((努力学习B/S开发))2005-08-02 17:31:30 在 企业开发 / Lotus 提问

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

相关问题

  • &*用法~~
  • setfocus的用法
  • icmp.dll的用法
  • Recordset的用法。
  • DataGrid的用法?
  • CDONTS.dll的用法???
  • EnumChildWindows的用法?
  • ListView的用法?
  • Request.QueryString的用法?
  • CMSComm的用法?

关键词

  • document
  • deletefield
  • routinglist
  • 公式
  • lotusscript
  • unavailable
  • 删除
  • fields
  • formula
  • fieldname

得分解答快速导航

  • 帖主:tina09

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo