I\'d like to know what purpose your friend had for this. Just curious to know really.
Anyway, as stated above by TropNul, you will receive no error message in your else event because there would be no %k.
Otherwise it seems to be thorough and coded well. Gj.