Notes数据库搜索条件 [英] NotesDatabase Search condition
本文介绍了Notes数据库搜索条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用以下代码:
Set col = db.Search("Form=""formname"" & id=212", time, 0)
例如,我明确给出搜索功能212,但是如果我想给出一个变量,该怎么办
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)
推荐答案
Set col = db.Search("Form=""formname"" & id=" + Cstr(val), time, 0)
应该工作.
Cstr()将整数值转换为字符串.
Cstr() converts the integer value to a string.
这篇关于Notes数据库搜索条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文