At 11:22 PM 4/30/2016, Bruce Chitiea wrote:

Seemed simple:

Q: How does one embed a quote character [ ' ] within a text string?

For the RMailX Plugin, wanted to create a variable with the output
(within brackets): [ Come to Bill's Party! ]

SET VAR vInvitation TEXT = ('Come to Bill''s Party!')

... produces [ Come to Bill''s Party! ]

SET VAR vq = (CVAL('QUOTES'))
SET VAR vInvitation TEXT = ('Come to Bill' + .vq + 's Party!')

... produces [ Come to Bill''s Party! ]

I've tried a number of variations, with crashable results; the one
constant being an odd number of [ ' ] within the parens spoils the
party.

Bruce,

Here's a technique to address your specific situation.

A very simple example ....

SET VAR vApostrophy TEXT = ''''
SET VAR vInvitation TEXT = ('Come to Bill' + .vApostrophy & 'Party')

That should concatenate a text string as follows:

Come to Bill's Party

Note:

The variable vApostropy is a combination of four (4) single quotes.

Once you understand this technique, you can adapt this to your code.

That's all there is to it!

Very Best R:egards,

Razzak.



--
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to