老师,您好
请问,如何在后台程序的debugfile中打印出百分号?
试试 char(37)
[此贴子已经被作者于2014/8/28 22:43:32编辑过]
试了以下代码:
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 &
就是没有百分号。。
确实不好弄,因为%号已经做为系统符号使用了, 建议你试试全角中文的百分号