1 Reply Latest reply on Oct 15, 2009 11:51 PM by Subeesh Arakkan

    get current textarea line

    ShaF10

      Hi Guys

       

      How can I get the text of the current line the cursor is on ? The following works for the last line:


                  ta.validateNow();
                  var textField:IUITextField = ta.mx_internal::getTextField();

                  var numLines:Number = textField.numLines; // get all lines on textarea

                  var lastLine:String = textField.getLineText(numLines - 1); //get lastline text