Local Magnetism in Alloying and Nonalloying Systems