New topic: 

How many lines in a MulitLine TextArea?

<http://forums.realsoftware.com/viewtopic.php?t=46182>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        tseyfarth          Post subject: How many lines in a MulitLine 
TextArea?Posted: Sat Dec 08, 2012 11:57 pm                         
Joined: Sat Dec 04, 2010 9:14 pm
Posts: 773                Hello All,

How to determine how many lines are in a multiline Text Area?

Thanks,
Tim   
                             Top                tadicboris          Post 
subject: Re: How many lines in a MulitLine TextArea?Posted: Sun Dec 09, 2012 
7:26 am                         
Joined: Fri Nov 25, 2011 3:14 am
Posts: 20
Location: Serbia                Try this:
  
dim i as integer
textarea.SelStart= len(textarea.text.trim)
i=textarea.LineNumAtCharPos(textarea.CharPosAtLineNum(len(textarea.text.trim)))
Msgbox "There are " +  str(i + 1) + " lines in TextArea"
      
_________________
Dr Boris Tadić
Medical Software Development
www.digitsoft.rs  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to