Download MetaTrader 5

Input does not work with double: known?

To add comments, please log in or register
ivan
505
ivan  

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
2584
Ian Venner  
What doesnt work about it ? It seems fine to me.
ivan
505
ivan  
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
9958
Keith Watford  

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

I am also with build 625

Ian Venner
2584
Ian Venner  
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  
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
31441
Alain Verleyen  
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