以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  【提问】请问,如何在后台程序的debugfile中打印百分号?  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=69358)

--  作者:cathero2001
--  发布时间:2014/8/28 22:22:47
--  【提问】请问,如何在后台程序的debugfile中打印百分号?
老师,您好

请问,如何在后台程序的debugfile中打印出百分号?

--  作者:王锋
--  发布时间:2014/8/28 22:43:25
--  
试试 char(37)
[此贴子已经被作者于2014/8/28 22:43:32编辑过]

--  作者:cathero2001
--  发布时间:2014/10/5 9:47:37
--  
试了以下代码:

debugfile(\'C:\\winlog\\abc.txt\', char(33), 0);
debugfile(\'C:\\winlog\\abc.txt\', char(35), 0);
debugfile(\'C:\\winlog\\abc.txt\', char(36), 0);
debugfile(\'C:\\winlog\\abc.txt\', char(37), 0);
debugfile(\'C:\\winlog\\abc.txt\', char(38), 0);

得到:
2014-10-05 09:45:47.160    !
2014-10-05 09:45:47.165    #
2014-10-05 09:45:47.171    $
2014-10-05 09:45:47.176    
2014-10-05 09:45:47.182    &


就是没有百分号。。

--  作者:王锋
--  发布时间:2014/10/5 13:45:19
--  
确实不好弄,因为%号已经做为系统符号使用了, 建议你试试全角中文的百分号