Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Mail.web Character Limit

Keywords:  mail.web   WebParamNames WebParamData

Question:

Using the mail.web forms processing script I seem to run up against a charcater limit of 4096 for the message - is this Webbatch or a limitation on forms?

It seems that if one of the variable Names in WebParamNames() has 4096+ characters associated with it, then this has a knock on effect on the content of other variables that follow it - ie. WebParamData doesn't seem to pick them up.

Answer:

There are more advanced functions available is you need to handle surprising large forms.

WebParamSize will tell you how big a particular variable is.
WebParamBuf will move a parameter to a binary buffer.

If you have *large* forms you may need to use those functions to get to your data.

s=WebParamSize("formelementname")
bb=BinaryAlloc(s)
WebParamBuf(bb,"formelementname")
myelement=BinaryPeekStr(bb,0,s)
BinaryFree(bb)
Is one way to get at the oversized data.


Article ID:   W12451
Filename:   Mail.web Character Limit.txt