Download MetaTrader 5
To add comments, please log in or register
Publish your article. Millions of traders are looking for good ideas!
qjol
3243
qjol 2014.03.31 06:07 
   long s2iChar = StringToInteger("A");
   Print(s2iChar);
   // The result is: 0
   // in my humble opinion it's supposed to be -1 or some error code

   long s2iNo = StringToInteger("0");
   Print(s2iNo);
   // The result is: 0
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.03.31 06:28  
Print(StringToInteger("12345"));

Its a

 const string number_string
string character to integer character
qjol
3243
qjol 2014.03.31 06:37  
deysmacro:

Its a

string character to integer character

read again please

StringToInteger

The function converts string containing a symbol representation of number into number of int (integer) type.

long StringToInteger(
string value // string
);

Parameters

value

[in] String containing a number.

ballenoz
80
ballenoz 2014.03.31 07:15  
If we are encouraged to report minor problems like this, I think I could fill this forum all by myself [big grin]
Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2014.03.31 07:30  
ballenoz:
If we are encouraged to report minor problems like this, I think I could fill this forum all by myself [big grin]
You are encouraged to report them all to the Service Desk
qjol
3243
qjol 2014.03.31 07:51  
ho, don't get me wrong
i'm not reporting anything it's just an announcement ;-)
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.03.31 08:11  
qjol:
ho, don't get me wrong
i'm not reporting anything it's just an announcement ;-)

I am just running with the flow .. XD
/
To add comments, please log in or register