StrToInt,就是Str(String)到Int(Integer)IntToStr,就是Int(Integer)到Str(String)呀。本身edit.text属性就是一个String型,你要用Age(整型)去接收一个字符串型,是不型的,所以做一个类型转换,跟C中的表述是一样的,只是语言不同而已。比方说,StrToInt("123")=整数123IntToStr(123)=字符串...
delphiinsert语句错误SQL.Add('insertintouser_infouser_type_id,username,passwordvalues:user_id,:user_name,:user_password'); 帮看下。 全代码如下: 〕procedureTForm2.Button3Click(Sender:TObject); var user_id:integer; user_name,user_password:string; begin ifuser_opquery.Active=truethen begin if...