Download MetaTrader 5
To add comments, please log in or register
Copy the deals of successful traders. Subscribe to signals!
Tim
45
Tim 2014.02.08 01:45 

Hi Everyone,

I'm having a problem but sure I'm just missing something simple. I want to ask the user to input a date and time but to make it easier I want to present them with the current date and time. However, I've tried the following line but get an error and cannot work out what I'm doing wrong:

input datetime datDate = TimeCurrent(); //Set Date

Regards,

Tim

Alain Verleyen
Moderator
28551
Alain Verleyen 2014.02.08 09:02  
I don't think it's possible as the default value has to be a constant.
/
To add comments, please log in or register