Calculation on a field code

M

Mike H.

I have a field code that returns a month name, like April. I was to also
display in my document just the first 3 characters of the field code, or in
this case, APR. Can I do that without creating a second field code?
 
P

Peter Jamieson

It depends on what type of field code your field is, but let's suppose
it's a REF field. Then one approach is to use a nested field like this:

{ QUOTE "{ REF myfield } 2010" \@MMM }

(where each pair of {} are the "special field braces" that you can
insert using ctrl-F9).

Peter Jamieson

http://tips.pjmsn.me.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top