A Question about DeleteLine and DeleteLines
Keith (Gulf Breeze Ortho Lab)
keith at gulfbreezeortholab.com
Thu Dec 15 19:00:52 EST 2011
Ohhhhh! I was using send in lieu of dispatch! Dispatch does the trick.
Thanks so much for the input (still learning here!)... This list rocks!
Cheers from Florida,
From: zryip theSlug
Sent: Thursday, December 15, 2011 5:06 PM
To: How to use LiveCode
Subject: Re: A Question about DeleteLine and DeleteLines
On Thu, Dec 15, 2011 at 11:26 PM, Keith (Gulf Breeze Ortho Lab)
<keith at gulfbreezeortholab.com> wrote:
> Hi All,
> A quick question for you. In the Data Grid Manual (i.e.,
> LiveCode_Data_Grid.pdf) it states regarding DeleteLines:
> Deletes the specified lines from the data grid. pLines is a comma
> delimited list of integers.
> When I try this in one of my projects, only one line is deleted from the
> data grid... I have to repeat with each item to delete it...
> The aforementioned documentation makes it sound like it is supposed to
> delete each item in the comma delimited list, or am I wrong?
The command should work as described in the documentation.
Add this code in a delete button:
dispatch "DeleteLines" to grp "myDatagrid" with the dgHilitedLines
of grp "myDatagrid"
Where myDatagrid is the name of your datagrid group.
Select some lines in the datagrid and click on the delete button.
What is the result?
-Zryip TheSlug- wish you the best! 8)
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
More information about the Use-livecode