I think that the carriage return that we
send from a TextArea is just \n and Windows expects it to be \r\n. What
if you try iterating through the string and replacing any \n with \r\n and then
executing the web service. Var newStr : String = “”; Var sourceStr : String = myTextArea.text; For (var c : Number = 0; c <
sourceStr.length; c++) { Var ch : String =
sourceStr.getCharAt(c); if (ch == ‘\n’) newStr += ‘\r’; newStr += ch; } myService.myOp(newStr); Actually, a more efficient implementation
might be: var arr : Array = myTextArea.text.split(‘\n’); var newStr : String = arr.join(“\r\n”); myService.myOp(newStr); Let us know if that helps, Matt From: Well I'm stumped. Yahoo! Groups Links
|
- Re: [flexcoders] carriage return via web service Matt Chotin
- Re: [flexcoders] carriage return via web service John Daharsh
- Re: [flexcoders] carriage return via web service John Daharsh
- Re: [flexcoders] carriage return via web service Reto M. Kiefer
- RE: [flexcoders] carriage return via web service Matt Chotin