<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    guanxf

    我的博客:http://blog.sina.com.cn/17learning

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      71 隨筆 :: 1 文章 :: 41 評論 :: 0 Trackbacks

    1、FTSearch搜索:
        Set dc=db.Ftsearch("name",0)  
             '0位置為最大的查詢數,0為所有匹配的文件  FTSearch必須創建數據庫索引
     Set doc=dc.Getfirstdocument()、
    2、Item:
       Set doc=dc.Getfirstdocument()
     While Not doc  Is Nothing
       ForAll ritem In doc.Items
          MsgBox ritem.name
       End ForAll
     Wend
    3、取出特定的域
     Set doc=view.getFirstdocument()
     If doc.HashItem("yu") <> "" Then
        Set item=doc.getfirstitem("yu")
              Set doc=view.getNextdocument(doc)
     End If
    4、使用文本屬性
    If doc.Hashitem("yu") <> ""  Then
     Set doc=dc.Getfirstdocument()
      While Not doc Is  Nothing
        ForAll itemValue In doc.yu
                  itemValue = "Anonymous"
              End ForAll   
          Set doc=dc.Getnextdocument(doc)
      Wend
    End If
    5、獲取域值:
       ForAll itemValue In doc.Getitemvalue("yu")
    6、添加域
      set item =new NotesItem(doc,"newYu",session.UserName)
      Call doc.Appenditemvalue("newYu",Newvalue)
    7、替換值:
      1)、 While Not doc Is Nothing
      Call doc.Replaceitemvalue("resName","newValue")
      Set doc=dc.getnextdocument(doc)
     Wend

       2)、Set doc=dc.Getfirstdocument()
     While Not doc Is Nothing
      'Call doc.Replaceitemvalue("resName","newValue")
      Set item =doc.Getfirstitem("yu")
      While Not item Is Nothing
         ForAll resitems In doc.Itemsv(0)
            resitems="newVlaue"
         End ForAll
         doc.name= doc.Itemsv(0)
         Set item =doc.getnextitem(item)
      Wend
      Set doc=dc.getnextdocument(doc)
     Wend
    8、拷貝域
             Set item =doc.Getitemvalue("name")
      call item.Copyitemtodocument(doc, "name")
             call doc.save(true,false)
          Call doc1.Copyallitems(doc2,true)  ‘替換所有的
    9、刪除指定的域:
         1)、 For j=1 To dc.count
       Set item=doc.Getitemvalue("name")
       While Not item Is  Nothing
        Call item.Remove()
        Call doc.Save(true,false)
       Wend
      Set doc=dc.Getnthdocument(j)
         Next
         2)、For j=1 To dc.count  
      While Not doc.Hasitem("name")
        Call doc.Removeitem("name")
        Call doc.Save(True,false)
      Wend 
       Set doc=dc.Getnthdocument(j)   
     Next
    10、RTF文本域的輸出:
     Set item=doc.GetFirstItem("RtfYU")
     MsgBox item.Text
    11、在代理中使用公式:

         temp=Evaluate("@ReplaceSubstring(aa;bb;cc)",doc)
    12、 嵌入對象:
     ForAll csx In doc.Embeddedobjects
        csx.name
     End ForAll
        Set doc=dc.Getnthdocument(j)
           Next
    13、激活嵌入對象:
        Call doc.EmbeddedObjects(0).Activate(True)
    14、if的用法
        Set doc=dc.Getfirstdocument()
        If Not IsEmpty(db.Agents) Then
        ForAll agent In db.Agents
         MsgBox agent.name
        End ForAll
         End If

     

    posted on 2011-12-26 00:46 管先飛 閱讀(1352) 評論(0)  編輯  收藏 所屬分類: Lotus Notes
    主站蜘蛛池模板: 在线观看免费精品国产| 久久久国产亚洲精品| 免费人成大片在线观看播放电影| 99精品视频在线观看免费专区| 亚洲国产91精品无码专区| 国产亚洲欧美日韩亚洲中文色| 一级片在线免费看| 国产精品久久免费| 亚洲日韩乱码中文无码蜜桃| 99亚洲乱人伦aⅴ精品| 国产成人免费一区二区三区| 偷自拍亚洲视频在线观看99| 亚洲精品国产综合久久一线| 好湿好大好紧好爽免费视频| 亚洲国产综合无码一区| 久草免费手机视频| 亚洲成A∨人片在线观看无码| 久久WWW免费人成人片| 亚洲youwu永久无码精品| 免费国产成人高清在线观看麻豆| 国产一区二区三区亚洲综合| 国产精品亚洲w码日韩中文| 你懂的免费在线观看| 亚洲黄色三级网站| 免费黄色大片网站| 国产成人无码精品久久久免费| 性感美女视频免费网站午夜 | 永久免费视频v片www| 免费看美女午夜大片| 国产成人亚洲综合无码精品| 91九色精品国产免费| 国产成人亚洲综合a∨| 亚洲av无码乱码国产精品| 99久久久国产精品免费无卡顿 | 一本久久a久久精品亚洲| 99re免费99re在线视频手机版| 亚洲色www永久网站| 亚洲午夜福利精品无码| 亚洲成人在线免费观看| 精品久久久久亚洲| 久久精品国产精品亚洲毛片|