关于notesvew.GetAllEntriesByKey的问题

function a() as notesviewentrycollection     .     .     .     set a=notesview.getallentriesbykey(key,true)     msgbox a.count  '这个是有数量的 endfunction 通过这个方法无法返回一个notesviewentrycol...显示全部
function a() as notesviewentrycollection
    .
    .
    .
    set a=notesview.getallentriesbykey(key,true)
    msgbox a.count  '这个是有数量的
endfunction
通过这个方法无法返回一个notesviewentrycollection对象,似乎对象只能存在于方法中,方法结束对象会被释放,有什么解决方法吗?收起
参与20

查看其它 15 个回答Domino-斌少的回答

Domino-斌少Domino-斌少软件开发工程师世强先进
定义全局变量,将function调整为sub,试试看~
微电子/半导体 · 2015-07-24
浏览1896

回答者

Domino-斌少
软件开发工程师世强先进

Domino-斌少 最近回答过的问题

回答状态

  • 发布时间:2015-07-24
  • 关注会员:2 人
  • 回答浏览:1896
  • X社区推广