Heat the olive oil or butter (or both) in a pan.
Add the onion and tomatoes and cook gently until softened.
Pour in the broth.
Add the carrot cubes, ham and string beans.
Bring to the boil, cover, lower the heat and simmer for about 10 minutes.
Add the cooked pasta. Season with salt and pepper. Simmer just until the pasta is heated through.