dbTalk Databases Forums  

Extra paragraph markers

comp.databases.filemaker comp.databases.filemaker


Discuss Extra paragraph markers in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Tanya Nahman
 
Posts: n/a

Default Re: Extra paragraph markers - 05-24-2007 , 04:54 PM






Oops, one more thing... if the field does NOT have an extra paragraph
marker, then the replace command is also adding an "*" at the end of
each field. Any way I can get it to stop doing that as well?

thanks, Tanya



Reply With Quote
  #12  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Extra paragraph markers - 05-25-2007 , 01:29 AM






In article <1180043650.603503.247090 (AT) q75g2000hsh (DOT) googlegroups.com>,
Tanya Nahman <tnahman (AT) gmail (DOT) com> wrote:

Quote:
Ok, I'm doing a combination of all of these suggestions. I've made
the fields to "return-to-leave", but that doesn't solve the problem
for the existing extra paragraph markers. I like the replace via
calculation function. The only thing is that if the field is empty,
then it is replacing it with a "*". Is there anyway to get it to
ignore empty fields?

Oops, one more thing... if the field does NOT have an extra paragraph
marker, then the replace command is also adding an "*" at the end of
each field. Any way I can get it to stop doing that as well?

thanks, Tanya
The easiest way to fix both problems is change the calculation used in
the Replace window to something like:

Substitute(
Substitute(
OriginalField & "**",
"{ret}**",
""
),
"**",
""
)

This uses nested Substitute functions - the inner one replaces the
annoying extra Return and appended "**" to a 'nothing', while the outer
one replaces any left over "**" to nothing.

I changed it to use a double "**" since hopefully is less likely to
appear within the field's data itself than a single "*" is. If you are
using possibly double "**" in some of the field's data, then you can
use anything you like that is not in the data: eg. "*-*", ".*.", etc.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.