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:
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.
Все большее распространение в современном мире получают облачные технологии. Мы можем использовать хранилища разного объема, как платные, так и бесплатные. Можем ли мы их использовать в практическом трейдинге? В этой статье предлагается технология для обмена данными между терминалами, через облачные хранилища. Вы спросите: зачем для этого...
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 reason was: naming a file in Russian letters is not allowed. The issue has been resolved.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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_UNICODEhelped, 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: