Simple "string" read problem!

 

I can't fathom this one..

string EUR[7] = {"EURUSD","EURGPB","EURAUD","EURNZD","EURCAD","EURCHF","EURJPY"};

int start()
  {
   for(int j=0;j<7;j++)
   Print(EUR[j],"  ",iClose(EUR[j],0,0));

   return(0);
  }

the result of the print function is:

If I ask it to print the result directly i.e Print(iClose("EURGBP",0,0)); then the correct value is given.

Can anybody tell me why the 2nd value of the string array is ZERO?

thanks

 
sd59:

I can't fathom this one..

the result of the print function is:

Perhaps you mean . . .

"EURGBP"   // EURo  Great British Pound
 

Raptor,

It's a good job somebody out there has an eye for detail!! I'll go and crawl in a corner for a bit...

cheers

 
sd59:

Raptor,

It's a good job somebody out there has an eye for detail!! I'll go and crawl in a corner for a bit...

cheers

I'll happily solve easy problems all day long
Reason: