以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 日期比较 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=170769) |
-- 作者:zhuxinhui -- 发布时间:2021/8/6 17:00:00 -- 日期比较 Dim ss As Table = Tables("单据资料")
这句“If ss.Rows(i)("日期") <> ss.Rows(i-1)("日期") Then”日期比较出错了,不要怎样改才行 |
-- 作者:有点蓝 -- 发布时间:2021/8/6 17:12:00 -- 如果都是日前型的列,肯定不是日期比较的问题 For i As Integer = 1 To ss.Rows.count-1
|
-- 作者:zhuxinhui -- 发布时间:2021/8/6 20:32:00 -- 明白 |
-- 作者:13568406997 -- 发布时间:2021/8/9 10:37:00 -- dim t as TimeSpan=dass.Rows(i)("日期") - ss.Rows(i-1)("日期") if t.totaldays<1 then |