I think you dont need to set result = inkey(sPlayerName);...instead,just type
inkey(sPlayerName);..the reason is that result is automatically set.


I like good 'views' because they have no 'strings' attached..