When you run this, look in your Experts tab of the Terminal window and you should see the error "title for MessageBox function must be a string".
The function MessageBox() has three parameters, and they all have defaults. If you use fewer parameters, it takes them in the order you give them and the default is used for any remaining without values. You used only two parameters, so it takes them to be the text (string) and caption/title (string), which is the problem. If you want to specify the flags you must use all three parameters.
Hope this helps.
Jellybean
P.S. I had a little chuckle over the title of your question ;-)
When you run this, look in your Experts tab of the Terminal window and you should see the error "title for MessageBox function must be a string".
The function MessageBox() has three parameters, and they all have defaults. If you use fewer parameters, it takes them in the order you give them and the default is used for any remaining without values. You used only two parameters, so it takes them to be the text (string) and caption/title (string), which is the problem. If you want to specify the flags you must use all three parameters.
Hope this helps.
Jellybean
P.S. I had a little chuckle over the title of your question ;-)
thanks. i see it now. lol and i see what you are talking about the title. oops
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
my massagebox() code is not working???