Download MetaTrader 5

The Function StringToInteger() has been made in a hurry

To add comments, please log in or register
qjol
3243
qjol  
   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
1399
SYED NAUFAL GADDAFI  
Print(StringToInteger("12345"));

Its a

 const string number_string
string character to integer character
qjol
3243
qjol  
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  
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
18021
Simon Gniadkowski  
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  
ho, don't get me wrong
i'm not reporting anything it's just an announcement ;-)
SYED NAUFAL GADDAFI
1399
SYED NAUFAL GADDAFI  
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