Code:
BMAP * AppletCalender_Background = "images\background.png";
STRING * MonthYear = "April 2008";
////////////////////////////////////////////////////////////////////////////////////////////////////
PANEL * Calender =
{
	bmap =  AppletCalender_Background;
	
	digits(20,20,"","Arial#15",1,0);
	digits(00,40,5,"#50",1,sys_day);
	
	digits(20,100,MonthYear,"#20",1,0);
	flags = TRANSLUCENT;
}
int main ()
{
	STRING * Weekdays[7];
	Weekdays[1] = " Monday";
	Weekdays[2] = " Tuesday";
	Weekdays[3] = "Wednesday";
	Weekdays[4] = "Thursday";
	Weekdays[5] = " Friday";
	Weekdays[6] = "Saturday";
	Weekdays[7] = " Sunday";
	
	STRING * Months[12];
	Months[1] =  " January ";
	Months[2] =  " February ";
	Months[3] =  "  March   ";
	Months[4] =  "  April   ";
	Months[5] =  "   May    ";
	Months[6] =  "  June    ";
	Months[7] =  "  July    ";
	Months[8] =  " August   ";
	Months[9] =  "September ";
	Months[10] = " October  ";
	Months[11] = " November ";
	Months[12] = " December ";
	
	STRING * Year = "               ";
	str_for_num(Year,sys_year);
	error(Weekdays[sys_dow]);
	pan_setstring(Calender,1,20,20,"#15b",Weekdays[sys_dow]);
	
	set(Calender,SHOW);
	STRING * MonthYear = str_cat((Months[sys_month]),Year);
	
}



There's the code.
I encounter 2 invalid arguments.The error(msg) show the string that I expect(Sunday).But one Invalid Argument is from pan_setstring and one more is by the last statement of the function.

What's possibly wrong here??

Thanks


Keep smiling laugh
http://translation.babylon.com/ - Translate many languages