Problem with StringConcatenate()

 

Hi,

I want use StringConcatenate()  to generate below string:

res="EURUSD",

For EURUSD, I want use Symbol() function, How I can add "" to this?

Regards;

 
fxturn:

Hi,

I want use StringConcatenate()  to generate below string:

res="EURUSD",

For EURUSD, I want use Symbol() function, How I can add "" to this?

Regards;

You don't need to . . .  you need to learn what a string is . . . 
 

fxturn:

I want use StringConcatenate()  to generate below string:

res="EURUSD",

For EURUSD, I want use Symbol() function, How I can add "" to this?

If you just want EURUSD in a string.
string s=StringConcatenate("My pair is ", Symbol()); // My pair is EURUSD
If your really want quotes in the string.
string quote="\"";
string s=StringConcatenate("My pair is ",quote, Symbol(), quote); // My pair is "EURUSD"
 
RaptorUK:
You don't need to . . .  you need to learn what a string is . . . 


Thanks.

I know what is string. Please first check my question and next reply.

 
WHRoeder:
If you just want EURUSD in a string.
If your really want quotes in the string.


Thanks. This works,