G gardenwood Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-24 #1 j:word j:=strtoword('2') j等于50 j:=strtoword('21') j等于12594, 这是怎么回事呢?
J jobsxy Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-24 #2 strtoword?好象没这个函数嘛?! j:word j:=strtoInt('2') j:=strtoInt('21');
Y yanlei Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-24 #4 Converts a String to a Word data type. function StrToWord(const Value: String): Word; Parameters const Value: String Data to be converted. Returns Word - Result of the conversion. Description StrToWord is a Word function that converts a String specified in Value to a Word data type.
Converts a String to a Word data type. function StrToWord(const Value: String): Word; Parameters const Value: String Data to be converted. Returns Word - Result of the conversion. Description StrToWord is a Word function that converts a String specified in Value to a Word data type.
G gardenwood Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-24 #5 to all: 加上uses IdTrivialFTPBase to yanlei, 英文不是说是把str转换成word 类型的数据吗,为什么会得到50啊?
J jobsxy Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-24 #7 好象这个函数是返回ACCII吗 如 strtoword('a') //97 strtoword('b') //98
影 影 子 Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-24 #8 j:=strtoword('2');// j等于50,$32 memo1.lines.add(vartostr(j)); j:=strtoword('22');// j等于12850,$3232 memo1.lines.add(vartostr(j)); 字符2的ASCII码为十进制的50, 看看上面的注释,明白了吧?
j:=strtoword('2');// j等于50,$32 memo1.lines.add(vartostr(j)); j:=strtoword('22');// j等于12850,$3232 memo1.lines.add(vartostr(j)); 字符2的ASCII码为十进制的50, 看看上面的注释,明白了吧?
G gardenwood Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-24 #9 恩。thx. 就是不知道这个函数怎么区个这么个破名字,害的我琢磨好久。呵呵