var
count,n:integer;
str:string;
begin
str:='3110566 12976 张三'
count:=0;
for i:=1 to length(str) do
begin
if str[i]=' ' then
inc(count);
end;
end;
count,n:integer;
str:string;
begin
str:='3110566 12976 张三'
count:=0;
for i:=1 to length(str) do
begin
if str[i]=' ' then
inc(count);
end;
end;
在用过程
procedure thg_zcgl.kg;
var kg: array [0..38] of string;
kzm,hc:string;
i,NUM:integer;
begin
kg[0]:='';
for i:=1 to 38 do
begin
if not(copy(LISTBOX.Text,i,1)=' ') then
NUM=NUM+1
dbedit1.text:=INTTOSTRING(‘NUM’);
end;
s:=memo.lines[i]pos(' '.....
delete .......
inc(count)