以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [原创]numtostr在序列模式下无法显示时间的解决方案  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=4798)

--  作者:z7c9
--  发布时间:2011/1/12 17:35:24
--  [原创]numtostr在序列模式下无法显示时间的解决方案

以下内容为程序代码:

1 runmode:1;
2
3 extgbdataset(\'date\',numtostr(year,0)+\'-\'+numtostr(month,0)+\'-\'+numtostr(day,0));
4 extgbdataset(\'time\',numtostr(hour,0)+\':\'+numtostr(minute,0));
5
6 string:=extgbdata(\'date\')+\' \'+extgbdata(\'time\');
7
8 drawtextex(1,1,100,1,string);

 

图片点击可在新窗口打开查看


--  作者:董小球
--  发布时间:2011/1/12 17:41:49
--  
哈哈  老师您太给力了~~