$mn is an array and i don't see where you are incrementing to the next element in the array.

edit
nevermind i see it now
edit

edit
wait,...
if @monthno was 1 meaning January, with $mn[1-1] that would be $mn[0] and in your array that would be the first element in the array '0' not January as it should be.
edit


Edited by Benny69 (2007-02-21 04:37 PM)
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)