以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 高级功能研发区 (http://www.weistock.com/bbs/list.asp?boardid=5) ---- 空数据问题 (http://www.weistock.com/bbs/dispbbs.asp?boardid=5&id=145219) |
-- 作者:orca8 -- 发布时间:2016/12/23 21:49:23 -- 空数据问题 Grid.LockTimeSectStart =startdate Grid.LockTimeSectEnd = endDate 我用这个限定 窗格显示的日期范围,我想 如果该日期内没有k线数据 ,能有属性可以知道, 我用 datacount showcount startshowindex 都不行,请问有什么办法?
|
-- 作者:yukizzc -- 发布时间:2016/12/25 20:26:35 -- 想了个复杂绕了个圈子去完成,最后判断n=1就表示有数据,0就表示中间都是空数据
Set Grid = Technic.GetGridByName("Main") startdate = "2016/10/01"
Grid.LockTimeSect = 1 \'开始结束日期的差 if FormatDateTime(Grid.DateBypos(num),1) = FormatDateTime(date_ad,1) then
Grid.ReInitDataFormula Sub APPLICATION_VBAEnd() |
-- 作者:orca8 -- 发布时间:2016/12/26 9:29:44 -- 我试试, 真够复杂的
![]() |