Jump to content

Highligting a selection


Manila Wolf

Recommended Posts

Thank you Lee,

 

I must have tried 100 different combinations.

Why did it require the two \.....

I watched the field expression build as I picked the property:, Format:, Precision:, additional Format:

So I thought I might need a \ between each field but not the location you suggested.

And of course you are correct.

Thanks again Lee

EBROWN

Link to comment
Share on other sites

In LISP the backslash is an Escape Character; this means it can be used to give the subsequent sequence of characters an alternative meaning, for example:

 

\n  =  new line character
\t  =  tab character
\r  =  carriage return
...

Hence, if you want to use a literal backslash, you need to mark it as a literal by prefixing it with another backslash '\\'.

 

In the original Field Expression we had:

 

\f "%lu5%pr5%ps[,\"]"

Since the expression contains characters that have other meanings ('\' and '"') we need to mark these characters as literals by prefixing them with a backslash:

 

[b][color=red]\[/color][/b]\f [b][color=red]\[/color][/b]"%lu5%pr5%ps[,[b][color=red]\[/color][/b]\[b][color=red]\[/color][/b]"][b][color=red]\[/color][/b]"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...