|
Home > Archive > dBASE Web Applications > September 2005 > "text area" component
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
"text area" component
|
|
| Dan Anderson 2005-08-26, 9:23 am |
| I want to use a "text area" (editor) form component to allow users to leave
instructions for our underwriters and processing department. What are my
limitations on the number of characters I can store?
--
Dan Anderson
UBI Processing Dept.
andersond@ubinc.com
800-444-4824 ext 101
| |
| Ken Mayer [dBVIPS] 2005-08-26, 11:23 am |
| Dan Anderson wrote:
> I want to use a "text area" (editor) form component to allow users to leave
> instructions for our underwriters and processing department. What are my
> limitations on the number of characters I can store?
>
I don't think there are limitations. There may be problems in how much
data you can pass through the server, but I don't know where you'd look
for them. If you hook this up to a memo field in a DBF, the memo doesn't
have practical limits (the limits are really high).
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
| Claus Mygind 2005-09-07, 7:23 am |
| Dan,
When using text area with a memo field you have to be careful in how you use
it or you will get unwanted line returns stored with the memo each time
someone accesses the record even if no changes were made to the field.
Verify that you have the following 2 items included in your code.
1. In the code that displays the text make sure there are no blank spaces
before or after the dbf variable displaying the text:
if not empty(c["<MyMemoField>"].value)
cValue = ltrim(c["MyMemoField"].value)
else
cValue = ""
endif
puts(' <textarea name="MyMemoField" cols="60" rows="3"
wrap="VIRTUAL">')
puts(cValue)
puts('</textarea>')
2. Eliminate unwanted line returns by adding this code in the receiving app.
/* Strip last two charcters from memo field
0D0A carriage return and line feed are always added.
These must be removed to keep empty fields empty.
*/
wkLen = len(oCGI["MyMemoField"])
if right(oCGI["MyMemoField"],2) ==chr(13)+chr(10)
oCGI["MyMemoField"] = substr(oCGI["MyMemoField"],1,wkLen-2)
endif
"Dan Anderson" <andersond@ubinc.com> wrote in message
news:W0dZXdkqFHA.1876@news-server...
>I want to use a "text area" (editor) form component to allow users to leave
>instructions for our underwriters and processing department. What are my
>limitations on the number of characters I can store?
>
> --
> Dan Anderson
> UBI Processing Dept.
> andersond@ubinc.com
> 800-444-4824 ext 101
>
|
|
|
|
|