String format is not working

Mail (2).txt (1.9 KB)
Hello,

I am using string.format but it is not working. Does someone know what is causing that string.format is not working?

Thanks!

Hi @Angel_Llull
could you please elaborate more

Hello @Angel_Llull ,

Can you please elaborate on the issue ? What are you trying to achieve through string.Format?

Thanks!
Athira

i am trying to fill the {} with variables. i read from txt → var called mail, and then i have 4 variables so i can fill {0} {1} {2}{3}

write text act: string.Format(mail, var1,var2,var3,var4)

I want to write a html file.

But appears an error: Write Text File: Input string was not in a correct format.

Curl brackets have a special meaning with String.Format(). To get literal curl brackets you need to escape them as {{ and }}.

E.g:

xmlns:m={"http://schemas.microsoft.com/office/2004/12/omml"}

should be

xmlns:m={{"http://schemas.microsoft.com/office/2004/12/omml"}}
1 Like

@Angel_Llull Refer this post

Hi @Angel_Llull

kindly Refer this link for detailed explanation

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.