Questions from Beginners MQL5 MT5 MetaTrader 5 - page 929
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
Code
Gives this result:
What am I doing wrong?You can't go through all enumeration members. Built-in enumerations cannot be traversed as an array - like from "0" to "end". To traverse inline enumerations, you need to address each member of the enumeration directly, correctly. For example like this:
You don't go through all the enumeration members. Built-in enumerations cannot be traversed as an array - like from "0" to "end". To access embedded enumerations, you must address each member of the enumeration directly, correctly. For example like this:
In an expression like this, val is 16385. What is this value?
I always thought int and enum could be easily converted to each other :(
Who would have thought...
If you want to access a standard enumeration as an array, you must first declare and fill such an array yourself:
In an expression like this, val is 16385. What is this value?
I always thought int and enum could be easily converted to each other :(
My example above(#9281): reproduce and look at the numbers
I'm trying to set up an ftp file transfer.
Pressing Test button in Service-Settings-FTP allows to send file, i.e. passwords and path are correct.
I can 't send files via software. When sending file via script when executing SendFTP("File_1.txt", "/ftp_failes"); the terminal hangs. File_1.txt is in the Files directory.
Question. TerminalInfoInteger( TERMINAL_FTP_ENABLED) in my script =0. I can't find where and how it is configured at all, please advise.
And can you tell me what else I'm missing?I'm trying to set up an ftp file transfer.
Pressing Test button in Service-Settings-FTP allows to send file, i.e. passwords and path are correct.
I can 't send files via software. When sending file via script when executing SendFTP("File_1.txt", "/ftp_failes"); the terminal hangs. File_1.txt is located in the Files directory.
Question. TerminalInfoInteger( TERMINAL_FTP_ENABLED) in my script =0. I can't find where and how it is configured at all, please advise.
And can you tell me what else I missed?The issue has been resolved.
I'm trying to read a string from a file:
Here is the first line in the file:
,1,1,1,21,0,unmatch count,IGNORECRLF
I only get the character "," in str.
FILE_UNICODE
helped, but in this case the Chinese characters are read.
What if I need ANSI? Why can't I read a whole string when the FILE_ANSI flag?
replace with: