以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]时段报错 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=51844) |
-- 作者:wyz20130512 -- 发布时间:2014/6/4 13:05:00 -- [求助]时段报错 单位规定员工的工龄工资满一周年(即365天)为1*20=20元,满2周年(2*365天)为2*20=40元...依次类推.但140元封顶. 表中有一个cjgzrq(参加工作日期)字段,如何设置"工龄工资"字段表达式? 请老师指点? Dim d As New TimeSpan = #6/4/2014 00:00:00# - #4/28/2006 00:00:00# Dim m As Double = d.TotalDays Output.Show(m) 为了使用时段类型,在执行窗口输入以上代码,可是报错,这是为何? [此贴子已经被作者于2014-6-4 13:08:52编辑过]
|
-- 作者:Bin -- 发布时间:2014/6/4 14:08:00 -- Dim d1 As Date=#6/4/2014 00:00:00# Dim d2 As Date =#4/28/2006 00:00:00# Dim d As TimeSpan = d1-d2 Dim m As Double = d.TotalDays Output.Show(m)
|