Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Text Form Field Too Small | Microsoft Word Help | |||
manipulating/cutting/pasting text out of a text box | Microsoft Word Help | |||
Form field default text length | New Users | |||
help, problem with text field in word 2003 | Microsoft Word Help | |||
Text Form Field Ref in Footer Won't Update on Screen | Microsoft Word Help |