want not to write 40 lines of code. As in other languages, the constant is used as a variable. After writing 40 lines, there is no problem. Thank
you for your interest.
I did not understand my question. variable with constant. how can we assign constants to a variable? and do it with the for loop. writing
40 lines is not the solution.
example,
for (int i = 0; i < 40; i++)
{
((string)this.Controls["MagicNumara" + (i + 1)]).Text;
Mehmet Bastem:
I did not understand my question. variable with constant. how can we assign constants to a variable? and do it with the for loop. writing
40 lines is not the solution.
example,
for (int i = 0; i < 40; i++)
{
((string)this.Controls["MagicNumara" + (i + 1)]).Text;
William Roeder:
You've already been told that that is impossible and was given the only solution
It's possible with some special #define and sort of iterative declaration list. So that in OnInit you have all numbers inside an array. The code is
too ugly to post it.
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.
You've already been told that that is impossible and was given the only solution
want not to write 40 lines of code. As in other languages, the constant is used as a variable. After writing 40 lines, there is no problem. Thank you for your interest.
I did not understand my question. variable with constant. how can we assign constants to a variable? and do it with the for loop. writing 40 lines is not the solution.
example,
for (int i = 0; i < 40; i++)
{
((string)this.Controls["MagicNumara" + (i + 1)]).Text;
I did not understand my question. variable with constant. how can we assign constants to a variable? and do it with the for loop. writing 40 lines is not the solution.
example,
for (int i = 0; i < 40; i++)
{
((string)this.Controls["MagicNumara" + (i + 1)]).Text;
You've already been told that that is impossible and was given the only solution
The user wants magic numbers to be entered this way. He wouldn't take my advice. input MagicSeri="123123; 43443; 34343";