Marc,

If this is a form letter, why not explore the mail merge facilities of the 
report write function?  Haven't quite advanced to stage yet but from following 
the list discussions it seems to involve using DB field types that support RTF 
(rich text format) data types and variables. Perhaps someone can jump in with 
some examples.

I agree with the rest of having unnested SRPL's.  The simpler you keep it the 
better off you are.

 Jim Bentley
American Celiac Society
[email protected]
tel: 1-504-737-3293




________________________________
From: Bill Downall <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Monday, January 12, 2009 10:12:15 AM
Subject: [RBASE-L] - Re: SRPL limit?

Marc,

You won't be able to measure a difference in performance speed between the two 
approaches, so I'm with Karen and Dennis.  When you want to modify this in 6 
months, with separate commands you'll be able to make the change in a few 
seconds. With the nested levels, you're almost certain to have to study and 
fiddle for a while to make sure you get all your commas and parens in the right 
place, and don't break one of the other SRPLs. 

Bill




On Mon, Jan 12, 2009 at 11:07 AM, MDRD <[email protected]> wrote:

Karen
 
The code is for my eyes only so as long as it works 
and I understand it that is OK for me.
 
Separate commands may be best in case one of the 
vars is null I can skip that SRPL.
 
Thanks
Marc
 
----- Original Message ----- 
From: [email protected] 
To: RBASE-L Mailing List 
Sent: Monday, January 12, 2009 9:38  AM
Subject: [RBASE-L] - Re: SRPL 
limit?
Wow!   I have never embedded even 2  SRPLs together.  I would not be able to 
figure out what you're doing with  this statement.   Unless you're doing it for 
for job security  reasons, if you're interested in anyone else figuring out 
this code, I would  suggest separate SRPLs!   If you're doing it as a form or 
report  variable and don't want to do multiple ones, then maybe a stored 
procedure  that you can CALL.    JMO

Karen




Hi
  
I am building form letters and  need to do about 20 SRPL's.  Is there a better 
way or do I string 20  SRPL's together?
The example only has 5  SRPL's
  
SET VAR vtext =   (SRPL((SRPL((SRPL((SRPL((SRPL (.vxtext, 
'[fname]',.vfname,1)), '[heshe]',  .heshe,1)),'[himher]', .himher, 1)), +
'[xx1]', .vxxmpt1,1)), '[xx2]',  .vxxmpt2,1))


Thanks
Marc


      

Reply via email to