Click to See Complete Forum and Search --> : display of Text in Text Area
rajesh
June 14th, 1999, 10:57 AM
Simple Q. We get the Text [ which is multi line] ie., with'\n'from TextArea and store it in an String var,so the \n will be lost. But I want to display that text in other Text Area by remembering the new line from String varaible or from database data fetch how to make... or any other way..
Thankyou!!!...
rajesh
unicman
June 15th, 1999, 08:34 AM
I don't know if I have got ur problem right. Do u want something like this ? ...
In one text field u want '\n' converted to new line and in other text field u want it to remain '\n' only.
If u want something like this, u can just substitute all the '\' with '\\' in the string.
- UnicMan
http://members.tripod.com/unicman
July 20th, 1999, 10:11 AM
I suggest that u use getText() from the source textarea and use dest.setText(src.getText()) for the other (destination) textrarea.
(src and dest are objects of textarea)
I have tested it with a simple application and this works fine.
Hope this is the solution u expected.
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.