Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共5 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]find中如何使用变量

1楼
bohe 发表于:2010/11/24 11:27:00

Dim dr As DataRow
Dim xn As String="2006-2007学年"
    dr= DataTables("考试").Find("学年 = '2006-2007学年'") '检查相同学年
If dr isnot Nothing Then
    output.Show(dr("学年"))
End If

 

上面的我改成

find("学年=" & xn)

或find("学年= xn")

 

都不行

2楼
czy 发表于:2010/11/24 11:34:00
dr= DataTables("考试").Find("学年 = '" & xn & "'")
3楼
bohe 发表于:2010/11/24 13:10:00
原来如此,又学了一招,谢谢C版
4楼
狐狸爸爸 发表于:2010/11/24 16:17:00

建议你看看这个:

 

http://help.foxtable.com/topics/1284.htm

 

5楼
bohe 发表于:2010/11/24 16:24:00
哈哈,看过一遍,忘了,现在记住了
共5 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03320 s, 2 queries.