Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Graham is offline
external usenet poster
 
Posts: 37
Default Length of text in a field

How do I determine the length (or number of characters) of a field?

I want to use something like:

{ IF { = LENGTH( { long_description } ) } 40
{ short_description } { long_description } }

except that there doesn't seem to be a LENGTH function.

Or I want to be able to use { NUMCHARS } for a small part of text, not the
complete document.

Is there a function? Or a workaround?

Thanks
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Length of text in a field

Hi Graham,

Try:
{IF{long_description}= "?????????????????????????????????????????*"
{long_description} {short_description}}

Cheers

--
macropod
[MVP - Microsoft Word]


"Graham" wrote in message
...
| How do I determine the length (or number of characters) of a field?
|
| I want to use something like:
|
| { IF { = LENGTH( { long_description } ) } 40
| { short_description } { long_description } }
|
| except that there doesn't seem to be a LENGTH function.
|
| Or I want to be able to use { NUMCHARS } for a small part of text, not the
| complete document.
|
| Is there a function? Or a workaround?
|
| Thanks


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Graham is offline
external usenet poster
 
Posts: 37
Default Length of text in a field

Thanks. Nice workaround.


"macropod" wrote:

Hi Graham,

Try:
{IF{long_description}= "?????????????????????????????????????????*"
{long_description} {short_description}}

Cheers

--
macropod
[MVP - Microsoft Word]


"Graham" wrote in message
...
| How do I determine the length (or number of characters) of a field?
|
| I want to use something like:
|
| { IF { = LENGTH( { long_description } ) } 40
| { short_description } { long_description } }
|
| except that there doesn't seem to be a LENGTH function.
|
| Or I want to be able to use { NUMCHARS } for a small part of text, not the
| complete document.
|
| Is there a function? Or a workaround?
|
| Thanks



  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Graham is offline
external usenet poster
 
Posts: 37
Default Length of text in a field

And it works well. 41 question marks and an asterisk.
I'm glad I'm not checking a paragraph length.

I put short_description before long_description so it uses the short
description if the long description is too long for my table cell.

Thanks a lot.



"Graham" wrote:

Thanks. Nice workaround.


"macropod" wrote:

Hi Graham,

Try:
{IF{long_description}= "?????????????????????????????????????????*"
{long_description} {short_description}}

Cheers

--
macropod
[MVP - Microsoft Word]


"Graham" wrote in message
...
| How do I determine the length (or number of characters) of a field?
|
| I want to use something like:
|
| { IF { = LENGTH( { long_description } ) } 40
| { short_description } { long_description } }
|
| except that there doesn't seem to be a LENGTH function.
|
| Or I want to be able to use { NUMCHARS } for a small part of text, not the
| complete document.
|
| Is there a function? Or a workaround?
|
| Thanks



Reply
Thread Tools
Display Modes

Posting Rules

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Form Field Too Small [email protected] Microsoft Word Help 4 September 6th 06 05:03 PM
manipulating/cutting/pasting text out of a text box [email protected] Microsoft Word Help 10 July 9th 06 10:54 PM
Form field default text length BostonHR New Users 2 October 26th 05 09:40 PM
help, problem with text field in word 2003 Salvatore Microsoft Word Help 1 January 21st 05 03:40 PM
Text Form Field Ref in Footer Won't Update on Screen StarWine Microsoft Word Help 3 December 6th 04 06:17 PM


All times are GMT +1. The time now is 05:58 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"