以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  如何提取时间的最大值 和最小值  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=119955)

--  作者:ZJZK2018
--  发布时间:2018/6/4 19:31:00
--  如何提取时间的最大值 和最小值
老师你好:
 如何提取同一施工日期内“开始时间”与“结束时间”列中最大时间值 和最小时间值,谢谢


图片点击可在新窗口打开查看此主题相关图片如下:88888888.png
图片点击可在新窗口打开查看


--  作者:有点蓝
--  发布时间:2018/6/4 20:27:00
--  
参考:http://www.foxtable.com/webhelp/scr/0393.htm

Dim lst As List(Of String) = DataTables("表A").GetValues("日期","日期 is not null")

For Each s As String In lst
    Output.Show(s)
    Output.Show("最大=" & DataTables("表A").Compute("Max(开始时间)","日期=#" & cdate(s) & "#"))
Next