Getting around form fileld length limit 
Author Message
 Getting around form fileld length limit

I have Word 97 macro that propagates data in
forms from one week to the next.  So I open last
weeks document, get the data from a text form
field, add to it and place it into this weeks
document.  All went well until the new string was
longer than 256 characters.  Form fields are
allowed to have more than 256 chars (I typed them
all in myself :-) but I cannot assign the RESULT
property a longer string.

e.g.

 r$ = ActiveDocument.FormFields("op").Result
 print len(r$) 'this is >256 in my broken scenario
 ActiveDocument.FormFields("op").Result = r$
                ' string too long error

Any ideas/workarounds/fixes?  I tried setting a
range variable like in the example, but that
assignment failed.

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Sun, 05 Jan 2003 03:00:00 GMT  
 Getting around form fileld length limit
Hi j,


the following article number in the subject line of your message:

Q163192

Bill Coan
New! DataPrompter addin prompts you for data
and inserts it into your documents automatically
Complete details at: http://www.wordsite.com/DataPrompter.html

Quote:


> I have Word 97 macro that propagates data in
> forms from one week to the next.  So I open last
> weeks document, get the data from a text form
> field, add to it and place it into this weeks
> document.  All went well until the new string was
> longer than 256 characters.  Form fields are
> allowed to have more than 256 chars (I typed them
> all in myself :-) but I cannot assign the RESULT
> property a longer string.

> e.g.

>  r$ = ActiveDocument.FormFields("op").Result
>  print len(r$) 'this is >256 in my broken scenario
>  ActiveDocument.FormFields("op").Result = r$
> ' string too long error

> Any ideas/workarounds/fixes?  I tried setting a
> range variable like in the example, but that
> assignment failed.

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Sun, 05 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting around 32k limit.

2. Getting around 32k limit.

3. Form Length Limit ?

4. Forms length limit seems to be 11520 ?

5. Getting Around Modal Forms

6. Getting around Modal Forms

7. alternative to tget around the 32k limit on combo box

8. String length limits?

9. limiting the length of a field with a return

10. Custom Document Properties Field Length Limits

11. Easy way to limit String length

12. Length limit for variable names in your language?

 

 
Powered by phpBB® Forum Software