Download MetaTrader 5
To add comments, please log in or register
Deposit to your account via PayPal
ivan
505
ivan 2014.04.12 19:20 

Hi everybody,

try to enter 0.5 or any other double on input in this script - the input cell will not allow you to do that.

Apparently an input variable can not be of double type, but it is not mentioned in documentation, is it?

Tested on build 625.

//+------------------------------------------------------------------+
//|                                           Input_double_check.mq4 |
//|                                                          qomment |
//|                                              https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "qomment"
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
#property script_show_inputs
input double a=1;
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
Comment(a);
   
  }
//+------------------------------------------------------------------+
Ian Venner
2583
Ian Venner 2014.04.12 19:54  
What doesnt work about it ? It seems fine to me.
ivan
505
ivan 2014.04.12 20:10  
SDC:
What doesnt work about it ? It seems fine to me.

Have you read my post and checked the problem or you are just trolling?
Keith Watford
Moderator
8028
Keith Watford 2014.04.12 20:21  

I tried your script and can input a double with no problem.

I am also with build 625

Ian Venner
2583
Ian Venner 2014.04.12 20:34  
qomment:

Have you read my post and checked the problem or you are just trolling?
Don't ask me stupid questions. Of course I tested it. input double a=1; works correctly on build 625.
ivan
505
ivan 2014.04.12 21:29  
GumRai:

I tried your script and can input a double with no problem.

I am also with build 625

Thanks, I've found the problem has arisen due to my keyboard setup. In English keyboard setup there is no issue indeed. Sorry for the wrong alert.
Alain Verleyen
Moderator
28704
Alain Verleyen 2014.04.13 06:46  
qomment:

Have you read my post and checked the problem or you are just trolling?
I strongly suggest you to not answer this way to people who are trying to help you.
/
To add comments, please log in or register