Stop robot on expiring date
Created at 20 Jan 2014, 17:50
Stop robot on expiring date
20 Jan 2014, 17:50
Is there a way to stop the robot when a specific date occurs?
if( Server date is => month-day-year)
{
Stop();
}
This will stop the robot on that date and trying to start the robot again after the expired date, would not be possible.
Thanks..
Replies
tanakorn5905
07 Nov 2015, 21:59
RE:
atrader said:
You mean like this:
DateTime stopDate = new DateTime(2014, 01, 31); if (Server.Time.Date == stopDate) { Stop(); }Add this in the beginning of the OnStart method so that it will prevent it from starting.
@tanakorn5905
atrader
21 Jan 2014, 16:43
You mean like this:
Add this in the beginning of the OnStart method so that it will prevent it from starting.
@atrader