Foxtable(狐表)用户栏目专家坐堂 → 值为空


  共有2260人关注过本帖平板打印复制链接

主题:值为空

帅哥哟,离线,有人找我吗?
0000
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:婴狐 帖子:46 积分:321 威望:0 精华:0 注册:2021/9/18 16:05:00
  发帖心情 Post By:2021/9/23 14:33:00 [只看该作者]

然后我Dim dr As Row = Tables("Table_3").Current
If dr Is Nothing Then Return
If dr("状态")="跟进中"
Dim d As Date = cdate(dr("记录日期")).adddays(val(e.Form.Controls("TextBox6").text)) 
Dim dt As Date =  format(d,"yyyy-MM-dd 23:59:59")
Dim t As TimeSpan = dt - Date.Today     '计算现在离今天的24时整还差多少时间
e.Form.Controls("Label29").Text = "剩余" & t.Days & "天" & t.Hours & "小时" & t.Minutes & "分" & t.Seconds & "秒"

Dim Lbl As WinForm.Label = e.Form.Controls("Label29")
If Lbl.ForeColor = Color.Red Then
    Lbl.ForeColor = Color.Black
Else
    Lbl.ForeColor = Color.Red
End If
Else
e.Form.Controls("Label29").text =""
End If

 回到顶部
总数 15 1 2 下一页