你说的是Pos收款机吗?各家收款机使用的不一样,必须查阅说明书,把各项命令写成一个过程,然后用vfp调用
以下是POS机显示金额128.45 的指令 变量STRJE=“128.45”
diyledform=createobject('form')
diyledform.addobject("MSComm1","olecontrol","mscommlib.mscomm")
diyledform.
diyledform.MSComm1.settings="9600,S,8,1"
if diyledform.mscomm1.portopen=.f. then
diyledform.mscomm1.portopen=.t.
endif
diyledform.mscomm1.outbuffercount=0
PDStr=Chr(27)+Chr(81)+Chr(65)+strje+Chr(13)