how can ı define i day as dayofweek?
ensark:
Hi this is my first Q. :) Thanks for sharing with your idea. Question is ;
I want to find i day in the loop which is dayofweek = 2
for example, i am trying but doesnt work such as : TimeDayOfWeek(iTime(NULL,1440,i)) == 1
simple use function DayOfWeek()
for example:
if (DayOfWeek() == 2) {Print("Wtorek");}
ensark:
I want to find i day in the loop which is dayofweek = 2
for example, i am trying but doesnt work such as : TimeDayOfWeek(iTime(NULL,1440,i)) == 1You ask for 2 but test for 1
for (i=0; TimeDayOfWeek(Time[i]) != 2; i++){}
Hi this is my first Q. :) Thanks for sharing with your idea. Question is ;
I want to find i day in the loop which is dayofweek = 2
for example, i am trying but doesnt work such as : TimeDayOfWeek(iTime(NULL,1440,i)) == 1