Buddy: Much appreciated.

Note: The brackets [ ] aren't part of the variable; they're just there to segregate code & result strings from commentary.

Here's what I ran:

SET VAR vSYNTAX_Invitation = ('vResult|ADD_TO_MESSAGE_BODY Come to Bill' + .vApos + 's Party!')
SET VAR vCompleteCodeLine TEXT = NULL
SET VAR vCompleteCodeLine = ('PLUGIN RMail' & .vApos + .vSYNTAX_Invitation + .vApos)
.
DEBUG SET VAR vPauseMessage = .vCompleteCodeLine
DEBUG PAUSE 1 USING .vPauseMessage
--
-- Which displays: [ 'vResult|ADD_TO_MESSAGE_BODY Come to Bill's Party!' ] as predicted and desired.
--
&vCompleteCodeLine
.
RMail vResult|SEND
.
**********
The second apostrophe is not present in the sent message; rather, replaced by a <space>: [ Come to Bill' s Party! ].

I cannot for the life of me see where a <space> would be introduced after the apostrophe.

Thoughts? Or R:BASE support?

Really appreciate your help and attention.

Bruce

------ Original Message ------
Sent: 5/1/2016 10:22:16 AM
Subject: RE: [RBASE-L] - RMailx Plugin: Apostrophe Anomaly
From: "Buddy Walker" <[email protected]>
To: [email protected]
Cc:

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