卷 卷起千堆雪tyn Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-05 #2 如果是动态数组 : 数组名:=nil;//释放掉
S SINGLBOY Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-05 #3 fillChar(MyArray,sizeOf(MyArray),0);
Y YB_unique Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-05 #5 Fillchar(i,sizeof(i),0);
E eric.youbin Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-05 #6 var thelength : integer; begin thelength := high(arr)+1; setlength(arr, 0); //将数组的长度设为0 setlength(arr,thelength); //如果是二维的数组就一位一位的来; end;
var thelength : integer; begin thelength := high(arr)+1; setlength(arr, 0); //将数组的长度设为0 setlength(arr,thelength); //如果是二维的数组就一位一位的来; end;
H hzgood Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-05 #7 数组A :ARRAY [1。。1200] OF STRING;如何清空;
E eric.youbin Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-05 #8 setlength(A, 0); //将数组的长度设为0 setlength(A,1200); 搞定;
H hzgood Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-05 #9 A :ARRAY [1。。20,1。。50] OF STRING; 如何清空;
C cnwinds Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-05 #10 用循环不就ok for i:=1 to 20 do for j:=1 to 50 do a[j] := '';
H hzgood Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-05 #11 我的天那,我现在的程序很难读,不能再用FOR 了,哥们,帮我一把,难道没有简单的函数吗 ok 我自己写一个吧;
L liangtianyi Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-06 #13 fillchar(xxx,sizeof(xxx),0) 如果是字符的话用#0,再在后面加上xxx:=nil
D dlnew Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-06 #14 口中说一声“变!” 同时按下键盘上的回车键,就可以了! []