Drs. Memon and Luettgens:

Thank you very much for your timely "O-dark" replies.

Fortunately, in this single-user shop all my personalities agree on the quote character.

An interesting trick ... why four marks?.

Yours truly

Bruce Chitiea
SafeSectors, Inc.
909.238.9012 Mobile

------ Original Message ------
Sent: 5/1/2016 4:40:21 AM
Subject: Re: [RBASE-L] - Embedded Quote in Variable Text String
From: "A. Razzak Memon" <[email protected]>
To: [email protected]
Cc:


Additional Note:

Keep in mind that the technique and example provided below is without
mucking with the database QUOTE setting. Changing the database QUOTE
setting in a live multi-user environment should never be practiced.

Razzak


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.


-- 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.

--
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