懒
懒少爷
Unregistered / Unconfirmed
GUEST, unregistred user!
一个组件在里面有:
private
FTotalSN:integer;
protected
procedure setTotalSN(sSN:string;eSN:string;SNs:string);
published
property TotalSN:integer read FTotalSN write setTotalSN;
implementation
procedure TCMultiDigits.setTotalSN(sSN,eSN,SNs:string); //):string ;
begin
if (sSN<>'') and (eSN<>'') and (SNs<>'') then
FTotalSN:=N2Dec(eSN,SNs)-N2Dec(sSN,SNs)
else
FTotalSN:=0;
end;
为什么会有incompatible types错误?如果我把FTotalSN变为String其它地为作相应修改就编译通过?
在线等待!
private
FTotalSN:integer;
protected
procedure setTotalSN(sSN:string;eSN:string;SNs:string);
published
property TotalSN:integer read FTotalSN write setTotalSN;
implementation
procedure TCMultiDigits.setTotalSN(sSN,eSN,SNs:string); //):string ;
begin
if (sSN<>'') and (eSN<>'') and (SNs<>'') then
FTotalSN:=N2Dec(eSN,SNs)-N2Dec(sSN,SNs)
else
FTotalSN:=0;
end;
为什么会有incompatible types错误?如果我把FTotalSN变为String其它地为作相应修改就编译通过?
在线等待!