Split big string and set in globalevaribales - page 2

 
Seng Joo Thio:

Can you show us the log?

 

Put this into your code and see what happens.

    string arrValues[];
    for (int i=0; i<iNumData; i++)
    {
        int count = StringSplit(arrPairs[i],':',arrValues);
        if ( count == 2 )
        {
            PrintFormat("i [%d] Pair was split: %s => %s", i, arrValues[0], arrValues[1]);
            GlobalVariableSet(arrValues[0],StringToDouble(arrValues[1]));
        }
        else
        {
            PrintFormat("HEY! This isn't a valid pair! There is no ':'! [%s]", arrPairs[i]);
            
            
            return;    // You can remove this if you want the process to continue on exception
        }
    }
Reason: