开钱箱
procedure openMoneyBox(sPort: string = 'lpt1');
var
tf: textfile;
begin
try
assignfile(tf, sPort);
rewrite(tf);
writeln(tf, chr(27) + chr(112) + chr(0) + chr(18) + chr(22));
finally
closefile(tf);
end;
end;
var
tf: textfile;
begin
try
assignfile(tf, sPort);
rewrite(tf);
writeln(tf, chr(27) + chr(112) + chr(0) + chr(18) + chr(22));
finally
closefile(tf);
end;
end;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/archive/2007/10/14/2940911.html