C cranexie Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-29 #1 如题,delphi help中说要转换为char数组,不知不这样行不行, 如果保存为char数组,读出时如和将他转换为string
W weekboy Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-29 #2 type sss=record fff;string; end; var aaa[0..19]:array of char; bbb:sss; i;integer; begin for i:=0 to 9 aaa:='a'; for i:=0 to 9 bbb.fff:=a; end;
type sss=record fff;string; end; var aaa[0..19]:array of char; bbb:sss; i;integer; begin for i:=0 to 9 aaa:='a'; for i:=0 to 9 bbb.fff:=a; end;
P Pipi. Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-30 #3 简单一点的话,你设置为带长度的string,实际是shortstring,长度不能超过255 string[100] 这样。(长度不能超过255)