How to use Array in struct table

 
struct tradeTable
{
   double entryPrice;
}Order[];

int OnInit()
  {
  
  
  
   //   int i;
 //  Order s_Array[i];
 
for (int i = 0 /*Note: Array index is zero-based, 0 is first*/; i <= 1000000000; i++)
  {
     Order[i] = 2; //iHigh(NULL, 0, i);
     // or
    // Order[i] = 1; //High[i];

  } 
      
 // Order[0].entryPrice=3;
  
 // Print("Order:"Order.entryPrice);
      
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   
  }
//+------------------------------------------------------------------+
 
You need to add a assignment operator to your struct.

Take a look at:


 
or just assign the members directly
     Order[i].entryPrice = 2;
Reason: