You claim to download Container2, but you don't use it. Logically, it should be:
// Get the data in its original formstring Str2[];
Container2[0].Get(Str2); // Got the arrayArrayPrint(Str2);
PRINT(Container2[1].Get<double>()) // We got a number
PRINT(Container2[2].Get<MqlTick>().bid) // We got the structure
Of course, in your example, the result is the same.
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.
The library sources contain Convert.mqh, which quickly converts an array of one type into an array of another type.
You can exchange anything through Resources.
You claim to download Container2, but you don't use it. Logically, it should be:
// Get the data in its original form string Str2[]; Container2[0].Get(Str2); // Got the array ArrayPrint(Str2); PRINT(Container2[1].Get<double>()) // We got a number PRINT(Container2[2].Get<MqlTick>().bid) // We got the structureOf course, in your example, the result is the same.More importantly, using the above code as a script with libraries download from
I got :
2019.03.26 18:11:51.624 R-277866Original (EURUSD,M1) Container[i].GetType() = string[2]
2019.03.26 18:11:51.624 R-277866Original (EURUSD,M1) Container[i].GetType() = double
2019.03.26 18:11:51.624 R-277866Original (EURUSD,M1) Container[i].GetType() = MqlTick
2019.03.26 18:11:51.656 R-277866Original (EURUSD,M1) Stack overflow in '...\MQL5\Scripts\forum\ R-277866Original.ex5'
You claim to load Container2, but you don't use it. Logically, it should be:
Yes, there is a typo in the example.
Of course, in your example the result is the same.
With your edit, the result will be the same.
More importantly, using the above code as a script with libraries download from
I got :
2019.03.26 18:11:51.624 R-277866Original (EURUSD,M1) Container[i].GetType() = string[2]
2019.03.26 18:11:51.624 R-277866Original (EURUSD,M1) Container[i].GetType() = double
2019.03.26 18:11:51.624 R-277866Original (EURUSD,M1) Container[i].GetType() = MqlTick
2019.03.26 18:11:51.656 R-277866Original (EURUSD,M1) Stack overflow in '...{MQL5\Scripts\forum\R-277866Original.ex5'
I can't say anything without the source code.
...
I can't say anything without the source.
The source is exactly your code. Build 2009.
It is your code that is the source. Build 2009.
Executed without errors.
Good afternoon.
I'm just declaring
RESOURCEDATA<uchar> Res;And such an error
It was not before, I think after updating the terminal appeared (build 2085). Or am I somewhere stupid? )
It didn't exist before, I think it appeared after terminal update (build 2085).
Localised this compiler bug
.
Yes, there is no such error in 2037.
Yeah, there's no such error in 2037.
Bypassed the bug, replace Include\fxsaber\TradeTransactions\Convert.mqh with the attached one.
Bypassed the bug, replace Include\fxsaber\TradeTransactions\Convert.mqh with the attached one.
Works ) Thanks!