procedure SemicolonPos(S: String; var LCount,RCount: Integer); begin LCount := Pos(';', S); RCount := Length(S) - LCount; Dec(LCount); end;