A Question about DeleteLine and DeleteLines
zryip theSlug
zryip.theslug at gmail.com
Thu Dec 15 18:06:16 EST 2011
On Thu, Dec 15, 2011 at 11:26 PM, Keith (Gulf Breeze Ortho Lab)
<keith at gulfbreezeortholab.com> wrote:
> Hi All,
Hi Keith,
> 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:
try
dispatch "DeleteLines" to grp "myDatagrid" with the dgHilitedLines
of grp "myDatagrid"
catch tTheError
answer tTheError
end try
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?
Best regards,
--
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.com
More information about the use-livecode
mailing list