Creating Multiple Object with Libraries

 

Hello everyone,

I did some research about this question but didnt found nothing


#include <Controls/Button.mqh>

CButton MyButton,MyButton2,MyButton3;


Is it possible to create 50 Buttons with a for loop instead of declearing them individually?

I have to loop and Create a new name for each button and thats my problem.

Thanks everyone

 
albrin memedi:

Hello everyone,

I did some research about this question but didnt found nothing


Is it possible to create 50 Buttons with a for loop instead of declearing them individually?

I have to loop and Create a new name for each button and thats my problem.

Thanks everyone

CButton *buttons[];