Add a single quote to a text string

Hello,


I have a problem wanting to send a quoted string. I wanted to add a variable between quoted text to send to a service I have. Can anyone help me? I leave an example.

Regards, 

Jorge Rodrigues

Hello Jorge again,

It´ s the same think in Tradicional and Reactive, you should use double quotes, for example like this:

"""" + VarTXT + """"

Hope it helps,

Nuno R

Hi Nuno,


I tried that way and it didn't work.

Regards, 

Jorge Rodrigues

Hello @Jorge Rodrigues ,

The example that you give in the begin works :).

This new one I think is a different case, can you share an OML?

Best Regards,

Nuno R

I was doing something wrong, you were right Nuno. Thank you very much.

Hello @Jorge Rodrigues ,

It´´´ s Tradicional or Reactive?

Best Regards,

Nuno R

Hello Jorge again,

It´ s the same think in Tradicional and Reactive, you should use double quotes, for example like this:

"""" + VarTXT + """"

Hope it helps,

Nuno R

Hi Nuno,


I tried that way and it didn't work.

Regards, 

Jorge Rodrigues

Hello @Jorge Rodrigues ,

The example that you give in the begin works :).

This new one I think is a different case, can you share an OML?

Best Regards,

Nuno R

I was doing something wrong, you were right Nuno. Thank you very much.

Hello @Jorge Rodrigues,


Nuno already said it. I'll add if you want just a single quote around the text, do the following:


"'" + VarTXT + "'"


Best,

Frederico

Thanks for the time available, but Nuno's answer was just what I wanted.

Hi,

if you want the result like this "VarTXT", then you can use this """"+VarTXT+"""", no need the backslash, such as belows:


Thanks for the time available, but Nuno's answer was just what I wanted.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.