만약에
str :=1FFF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002FFFFF;
이라는 문자열이 있다고 가정했을때 문자열의 19번째부터 마지막(또는 2FFFFF앞)까지의 문자열을 추출하여
4개씩(EX.0000) 자를려면 어떤 방법이 있나요...??
<!--CodeS-->
var
str, str4 : string;
i : integer;
begin
str :='1FFF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002FFFFF';
i := 19; //19번째부터 4개씩
while i <= Length(str) do
begin
str4 := Copy(str, i, 4);
ListBox1.Items.Add(str4); //4개씩 ListBox에 저장
i := i + 4;
end;
end;
<!--CodeE-->
Marek...