人 人 Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-22 #1 time是一个word数据类型 time:=$0235; 我想把time的数值加1 i:=0235; time:=$(i+1); 怎样写才符合语法呢?
J Johnny_du Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-22 #4 procedure TForm1.btn1Click(Sender: TObject); var time: Word; begin Time := $0235; ShowMessage(IntToStr(Time)); Inc(Time); ShowMessage(IntToStr(Time)); end;
procedure TForm1.btn1Click(Sender: TObject); var time: Word; begin Time := $0235; ShowMessage(IntToStr(Time)); Inc(Time); ShowMessage(IntToStr(Time)); end;
Z zbr Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-22 #5 procedure Inc(var X [ ; N: Longint ] );