Bruce

  Try building the complete syntax into a variable as such

 

   SET VAR vSYNTAX_Invitation =  ('vResult|ADD_TO_MESSAGE_BODY [Come to Bill' + 
.vApos + 's Party!]')

 

   SET VAR vCompleteCodeLine TEXT

 

   SET VAR vCompleteCodeLine = ('PLUGIN RMAIL' &  .vApos  + .vSYNTAX_Invitation 
+ .vApos)

 

  Now replace line PLUGIN RMAIL .vSYNTAX_Invitation with this    
&vCompleteCodeLine

 

Buddy

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
Bruce Chitiea
Sent: Sunday, May 1, 2016 12:33 PM
To: [email protected]
Subject: [RBASE-L] - RMailx Plugin: Apostrophe Anomaly

 

All:

 

RBGXE - 10.0.1.20414

RMailX - Latest

 

Note: [ ] brackets isolate strings of interest from surrounding text.

 

While testing message construction with the [ SET VAR vApostrophe = '''' ] 
trick in RMailX, I experience:

 

An "Invitation" text variable builds correctly: [ Come to Bill's Party! ] with 
a single apostrophe.

 

But that text appears in the email as: [ Come to Bill''s Party! ] with a double 
apostrophe.

 

Looping Code (stripped down):

 

SET VAR vApos TEXT = NULL

SET VAR vSYNTAX_Invitation TEXT = NULL

SET VAR vApos = ''''

.

LABEL Loop0_Enter

.

SET VAR vSYNTAX_Invitation =  ('vResult|ADD_TO_MESSAGE_BODY Come to Bill' + 
.vApos + 's Party!')

.

DEBUG SET VAR vPauseMessage = .vSYNTAX_Invitation

DEBUG PAUSE 1 USING .vPauseMessage

.

-- vPauseMessage reads: [ Come to Bill's Party! ] with the single apostrophe.

.

PLUGIN RMail vResult|SHOW LOG

.

PLUGIN RMail .vSYNTAX_Invitation

.

PLUGIN RMail vResult|SEND

.

SET VAR .vSYNTAX_Invitation = NULL

.

GOTO  Loop0_Enter

LABEL Loop0_Exit

 

******************

The variable text appears in the message as: [ Come to Bill''s Party ] with a 
double apostrophe.

 

??

 

Bruce Chitiea

SafeSectors, Inc.

909.238.9012 Mobile

--

-- 
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] 
<mailto:[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