New topic: 

Inserting new row

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

         Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic          Author  
Message        Rivo          Post subject: Inserting new rowPosted: Sat Apr 23, 
2011 1:18 am                         
Joined: Tue Aug 29, 2006 4:04 am
Posts: 304
Location: Indonesia                Hi,

I'm lookin for some sample how to do inserting new row which is located below 
the selected row (both single or multiselected). 
 

Thanks,
Rivo   
                             Top                timhare          Post subject: 
Re: Inserting new rowPosted: Sat Apr 23, 2011 1:36 am                         
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 9722
Location: Portland, OR  USA                Use InsertRow instead of AddRow.   
                             Top                Rivo          Post subject: Re: 
Inserting new rowPosted: Sat Apr 23, 2011 2:01 am                         
Joined: Tue Aug 29, 2006 4:04 am
Posts: 304
Location: Indonesia                Yes, Insertrow is the solution.
but how to define the new row location.??

this method only inserting on row 2.
Code:ListBox1.InsertRow (2, "cars")

I'm expecting the new row is added exactly below the selected item.

thanks

Rivo   
                             Top                jefftullin          Post 
subject: Re: Inserting new rowPosted: Sat Apr 23, 2011 2:11 am                  
               
Joined: Wed Nov 15, 2006 3:50 pm
Posts: 2292
Location: England                this method only inserting on row 2.
Code:
ListBox1.InsertRow (2, "cars")


Quote:I'm expecting the new row is added exactly below the selected item.
Listindex   
                             Top                Rivo          Post subject: Re: 
Inserting new rowPosted: Sat Apr 23, 2011 2:15 am                         
Joined: Tue Aug 29, 2006 4:04 am
Posts: 304
Location: Indonesia                ok, is it worked for multi-selected too.??

I haven't tried it..


regards,
Rivo   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 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