T thebluehouse Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-12 #1 怎么样才能把字符串400变成十进制数值的400?
W Writer Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-12 #3 var str: String; i: Integer; begin str:= "400"; i := StrToInt(str); //i为400了 end;
C cnkk Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-12 #5 确保一点 IntToStrDef(AString, -1)
T thebluehouse Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-12 #6 Var S:string; A:integer; reg.RootKey:=HKEY_CURRENT_USER; if reg.OpenKey('controlpanel/desktop',false)then S:=reg.Readstring('menushowdelay'); A:=StrToInt(S); trackbar2.Position:=A; Reg.Free; 为什么错了?
Var S:string; A:integer; reg.RootKey:=HKEY_CURRENT_USER; if reg.OpenKey('controlpanel/desktop',false)then S:=reg.Readstring('menushowdelay'); A:=StrToInt(S); trackbar2.Position:=A; Reg.Free; 为什么错了?
C cqbaobao Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-13 #7 错不在 StrToInt,在: reg.OpenKey('Control Panel/Desktop', False)
A aizb Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-13 #9 Var S:string; A:integer; reg.RootKey:=HKEY_CURRENT_USER; if reg.OpenKey('controlpanel/desktop',false)then begin S:=reg.Readstring('menushowdelay'); A:=StrToInt(S); trackbar2.Position:=A; Reg.Free; end;
Var S:string; A:integer; reg.RootKey:=HKEY_CURRENT_USER; if reg.OpenKey('controlpanel/desktop',false)then begin S:=reg.Readstring('menushowdelay'); A:=StrToInt(S); trackbar2.Position:=A; Reg.Free; end;