copy函数 copy(setlength(rbuf,4),buf+ipos,4)?其中:setlength(rbuf,4)是个动态数组,这样为什么不行? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 setlength是procedure,又没有返回值。试试下面 setlength(rbuf,4); rbuf[3]:='23124rrfadf'; s:=copy(rbuf[3],buf+ipos,4); setlength(rbuf,4)是个动态数组???看help:procedure SetLength(var S; NewLength: Integer);S is a Delphi string or dynamic-array variable. function Copy(S; Index, Count: Integer): string;function Copy(S; Index, Count: Integer): array;procedure SetLength(var S; NewLength: Integer);setlength只是一个过程,没有返回值,当然不可以 Intraweb进行网络通信时使用哪种参考模型? !!!!!!求存储过程返回结果集写法!!!!!!!!!!!!!!!! 今年过节不送礼,送礼只送社区积分!散分! CSDN!你太烦了!! ---- 铁公鸡发帖不给分 在Delphi里关于鼠标移动问题 动态创建RAVE报表时出现的问题 ADOConnection 的Mode属性是什么意思?怎么设置 delphi7如何能把系统打印机首选项菜单调出来? 寻求解决方案:关于delphi6+sql2000的。在线等待!!!!! 为什么程序在运行中会自动关闭,请大家指教! 一个三层小实例,大家都来看看吧。 临时表不能删除的问题,急!!!
试试下面
setlength(rbuf,4);
rbuf[3]:='23124rrfadf';
s:=copy(rbuf[3],buf+ipos,4);
procedure SetLength(var S; NewLength: Integer);
S is a Delphi string or dynamic-array variable.
function Copy(S; Index, Count: Integer): array;procedure SetLength(var S; NewLength: Integer);setlength只是一个过程,没有返回值,当然不可以