The information in this article applies to:
SYMPTOMSWhen you use the WordBasic function GetFormResult$() to return the text of a text form field (with a length set to Unlimited), the function returns only the first 255 characters of that text string. CAUSE
In Word 7.x and earlier, the maximum size of the return string of
GetFormResult$() and SetFormResult is 255 characters.
RESOLUTIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/supportnet/refguide/GetBookmark$(): To retrieve the full text string, use the GetBookmark$() function. GetBookmark$() returns the full text string and a form field header containing the field of origin. To return the text string alone, the macro must strip off the header. The following sample macro returns the entire contents of a text form field using the GetBookmark$() function:
SetFormResult:
To work around the problem with SetFromResult, use the following sample macro:
Additional query words: formfields limits getformresult
Keywords : kbdtacode wordnt kbmacroexample winword ntword macword word6 word7 word95 |
Last Reviewed: January 3, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |