Bonjour à tous,
Alors voila je n'arrive pas a comprendre cette ligne:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
tab_recup_data[i]=*dynamic_cast<__box*>(myRow->Item[myCol]->ToString());
En fait je sais pas du tout dans quel ordre il me met mes valeurs dans le tableau et comment puis je y acceder.

Je joins tout le reste du code pour une meilleure comprehension.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
private:
 void PrintRows(DataSet* myDataSet){
 
     int i=0;
     float tab_recup_data __gc[] = new float __gc[100];
    // For each table in the DataSet, print the values of each row.
 
    System::Collections::IEnumerator* myEnum = myDataSet->Tables->GetEnumerator();
    while (myEnum->MoveNext())
    {
       DataTable* thisTable = __try_cast<DataTable*>(myEnum->Current);
       // For each row, print the values of each column.
       System::Collections::IEnumerator* myEnum1 = thisTable->Rows->GetEnumerator();
       while (myEnum1->MoveNext())
       {
          DataRow* myRow = __try_cast<DataRow*>(myEnum1->Current);
          System::Collections::IEnumerator* myEnum2 = thisTable->Columns->GetEnumerator();
          while (myEnum2->MoveNext())
          {
             DataColumn* myCol = __try_cast<DataColumn*>(myEnum2->Current);
            tab_recup_data[i]=*dynamic_cast<__box*>(myRow->Item[myCol]->ToString());
             i++;
          }
        }
    }