D dsq1980 Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-29 #1 spcomm控件在程序运行期怎么设置齐偶校验位,它是Tparity型
C chll Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-29 #4 在运行期,动态设定spcomm控件的Parity属性值即可。 如Comm.parity:=evenparity;
D dsq1980 Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-29 #5 [Error] Unit1.pas(30): Incompatible types: 'TParity' and 'Integer' 还是不行
D dsq1980 Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-29 #7 好像可以了,我是这样改的,谢谢chll Comm1.parity:=Tparity(none); Comm1.parity:=Tparity(evenparity); Comm1.parity:=Tparity(markparity); Comm1.parity:=Tparity(oddparity);
好像可以了,我是这样改的,谢谢chll Comm1.parity:=Tparity(none); Comm1.parity:=Tparity(evenparity); Comm1.parity:=Tparity(markparity); Comm1.parity:=Tparity(oddparity);
C chll Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-29 #9 我刚才也试了,好像 Comm1.parity;=even;也可以
T ting__ting Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-29 #10 你可以设一个变量来存贮: comm_parity:TParity; comm_parity:=even; comm.parity:=comm_parity;