DataGrid - delete a line

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
dantomlin
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 43
Joined: Tue Feb 26, 2008 4:07 pm

DataGrid - delete a line

Post by dantomlin » Tue Aug 11, 2015 8:30 pm

What would be the best way to delete a line in a data grid? I also might have other lines in the data grid and only want to delete the one line

is there a data grid function that would delete the entire line?

Thanks, Dan

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9785
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: DataGrid - delete a line

Post by dunbarx » Tue Aug 11, 2015 9:37 pm

Hi.

There is the "deleteIndex" command within the DG world. Check out the DG user guide. For my part, I usually extract the dgData or the dgText and work in the clear, restoring after massaging the data.

Craig Newman

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: DataGrid - delete a line

Post by MaxV » Tue Aug 18, 2015 1:42 pm

just use (for example, if you need to delete just line number 3):

Code: Select all

send "deletelines 3" to group "DataGrid"
read http://livecode.wikia.com/wiki/Datagrid_API for more informations
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”