delphi 将word转换成string

2025-05-08 13:25:57
推荐回答(2个)
回答1:

354行是哪行啊......
另外直接用AS赋值不好么,非要COPY..
完了还strtoint,这个函数是把字符串转成数字的(string转成int),你还给个word型参数,没明白你要干嘛

回答2:

这不是废话么,strNum是Longint,inttostr(i)是字符串,不报错就怪了。楼主你真粗心。

把strNum声明成string