以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]窗口绑定的统计表怎么重新设置列标题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=129900)

--  作者:紫色幽魂
--  发布时间:2019/1/8 14:25:00
--  [求助]窗口绑定的统计表怎么重新设置列标题
将统计表绑定在窗口的表单中,列标题我想设置为当前日期,比如原列名:当日检测_检测量,改为:当日(2019年1月8日)_检测量,我在生成统计报表的按钮中代码后面用Caption设置列标题,但是改不了
--  作者:有点甜
--  发布时间:2019/1/8 14:44:00
--  

参考

 

http://www.foxtable.com/webhelp/scr/1275.htm

 


--  作者:紫色幽魂
--  发布时间:2019/1/8 15:44:00
--  回复:(有点甜)参考 http://www.foxtable....
我想把这个控件里面的日期转为文本,加入到标题里面,但是转换不了,怎么处理
Dim rq As WinForm.DateTimePicker = e.Form.Controls("统计1_日期")
Dim rq1 As String = Forms(rq.Value,"yyyy年MM月dd日")

--  作者:有点甜
--  发布时间:2019/1/8 16:20:00
--  

Dim rq As WinForm.DateTimePicker = e.Form.Controls("统计1_日期")
Dim rq1 As String = Format(rq.Value,"yyyy年MM月dd日")
msgbox(rq1)