Errors, bugs, questions - page 1534

 
In MT4 datetime is not converted to string as it is in MT5.
 
comp:
In MT4 datetime is not converted to string as it is in MT5.
It's fine, how do you do it?
 
Vladislav Andruschenko:
It's fine, but how do you do it?

As usual: (string)time. Found out the reason - #property strict was missing. As soon as I put it in, everything became normal.

Can we make it so that strict mode is always on by default?

 
comp:

...

Can you make it so that strict mode is always on by default?

When creating any type of mql4 file in MQL4 Wizard, #property strict is set automatically.
 
Karputov Vladimir:
When creating any type of mql4 file in MQL4 Wizard, #property strict is set automatically.

Not using the Wizard. #property old_mql would be enough to make the old codes work.

Now everyone is writing in new MQL.

 

Question on ArraySetAsSeries (mql4). Help says:"TheAS_SERIESflag cannot be set for multidimensional arrays... "

But it turns out that it can and the code will return 1 or 3 depending on the flag. Am I reading it wrong or is there a mistake in the help?

int A[][2];
   ArrayResize(A,3);
   A[0][0]=1;
   A[1][0]=2;
   A[2][0]=3;
   Alert(A[0][0]);
   ArraySetAsSeries(A,true);
   Alert(A[0][0]);
 

Dear Developers. The site search does not work correctly.

Check on the line "OOP". Not a single article. Though there are enough of them.

 
Alexey Kozitsyn:

Dear developers. The site search does not work correctly.

Check on the line "OOP". Not a single article. Although there are plenty of them.

Hello! Thank you for your feedback.

We are working on fixing the search problems.

 
Administration: What is the type of _RandomSeed predefined variable? The page(MQL4 and MQL5) doesn't say anything about it. Please correct the help.
 
Maxim Khrolenko:
Administration: What is the type of _RandomSeed predefined variable? The page(MQL4 and MQL5) doesn't say anything about it. Please correct it.
int, see MathSrand