home *** CD-ROM | disk | FTP | other *** search
- unit MergeStU;
-
- interface
- uses LPaU, IMiU, IMaU;
- function MergeStr(A, B: string; Lngth: integer): string;
-
- implementation
-
- function MergeStr;
- var I: integer;
- Ch,
- Ch2: char;
- begin
- if Lngth = 0 then Lngth := IMax(length(A),length(B));
- if Lngth < 0 then Lngth := IMin(length(A),length(B));
- A := LPad(A,Lngth);
- B := LPad(B,Lngth);
- for I := 1 to Lngth do
- if A[I] = ' ' then
- A[I] := B[I];
- MergeStr := LPad(A,Lngth);
- end;
-
- end.
-