need codes to get secoundary weapon.

here is the situation
i want to replace players secondary weapon,then i should get it first,but i don't know how.
I can get first gun by this : firstgun=self getCurrentWeapon();
but what should I can to get secondary weapon?
I tried
firstgun=self getCurrentWeapon();
self takeWeapon(self getCurrentWeapon());
secgun = self GetWeaponsListPrimaries();
just take firstgun away and get the secgun,but i failed .