how to implement for loop on objects

To add comments, please log in or register
Martin Moreno
77
Martin Moreno  

Hi guys,

I need to show many symbols in my Dialog box which I create it by using CDialog.mqh. (located in : Include/Controls/CDialog.mqh)

Is there any way to loop on objects of a class?

need to have many labels on my dialogBox. Just give me tips to implement them.

thanks..

dialogBox

lippmaje
879
lippmaje  
MQL does not offer code reflection. You cannot enumerate or iterate over the members of an arbitrary class. But it should be possible to build a CList of all labels that you add, and loop over this.
To add comments, please log in or register