- TheHonestPrussian: however, I get the warning "implicit conversion from number to string" in the terminal journal. We know this is a conversion, so how would I remove this warning?
string thisIsTheAccountNumber = int(IntegerToString(AccountNumber(),0));
You are converting the account number to a string. Then back to an int. Then implicitly back to a string. What are you thinking?
string thisIsTheAccountNumber = IntegerToString(AccountNumber());
-
Or just do your conversions only when you need it.
SendMail("This is your account number.",StringFormat("The Account Number is: #%d",AccountNumber()));

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
So I'm trying to find a much more efficient way of converting an integer or a double to string, without typing
+IntegerToString(AccountNumber(),0)+
every time I use a Mail, Print or MessageBox function.
I believe that you can apply the following:
and then just use the converted variable name like this :
however, I get the warning "implicit conversion from number to string" in the terminal journal. We know this is a conversion, so how would I remove this warning?
Many thanks and all the best,