當我使用下面的代碼時,它會編譯,但其餘的代碼似乎不起作用。當我拿出它的子串部分時,它確實如此。子字符串編譯但代碼不起作用
-Steps
String theDate, theWeekDay;
if (ToTime(Time[0]) == ToTime(0, 0, 0))
{
theDate=ToDay(Time[0]).ToString().Substring(0,3);
theWeekDay=Time[0].DayOfWeek.ToString().Substring(4,8);
DrawTextFixed("day",theWeekDay, TextPosition.BottomRight);
DrawText("day"+Convert.ToString(ToDay(Time[0])),
theWeekDay+" "+theDate,0, Low[0]-TickSize*20, Color.Blue);
}
運行工作,你的整個* *代碼? –
'theWeekDay'和'Time'是什麼? Thye在哪裏宣佈並初始化?你究竟在努力實現什麼? –
定義「似乎不起作用」更精確 –