NotesDatabase Search condition

白昼怎懂夜的黑 提交于 2019-12-02 10:59:13

问题


With this code:

Set col = db.Search("Form=""formname"" & id=212", time, 0)

I explicity give the search function 212 for example, but what if I want to give a variable

dim var as Integer

How would my search look like, beacuse this doesn't work:

Set col = db.Search("Form=""formname"" & id=var", time, 0)

回答1:


Set col = db.Search("Form=""formname"" & id=" + Cstr(val), time, 0)

should work.

Cstr() converts the integer value to a string.



来源:https://stackoverflow.com/questions/23981044/notesdatabase-search-condition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!