Rss & SiteMap

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

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

标题:[求助]窗口筛选条件函数

1楼
lgj716330 发表于:2025/2/13 17:40:00
我弄了个筛选条件的函数,函数名称为FilterNY3
Dim e = Args(0)
Dim N1 As Integer = e.Form.Controls("NF").value
Dim Y2 As Integer = e.Form.Controls("YF2").value
Dim FilterNY3 As String = "年份=" & n1 & " and 月份=" & y2 & ""

然后在窗口控件中调用时显示是空值,控件中已录入了值
Functions.Execute("FilterNY3", e)

窗口录入年份月份后,msgbox(FilterNY3)显示是空值
2楼
y2287958 发表于:2025/2/13 20:20:00
函数没有返回值
用Return
3楼
有点蓝 发表于:2025/2/13 20:58:00
函数
……
Dim FilterNY3 As String = "年份=" & n1 & " and 月份=" & y2 & ""
return FilterNY3 

窗口控件
dim 返回值 as string = Functions.Execute("FilterNY3", e)
msgbox(返回值 )
共3 条记录, 每页显示 10 条, 页签: [1]

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

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