Re: Datagrid deleteline vs deletelines issue
I've encountered that. I have considered replacing all my singular instances of deleteline with the plural deletelines and then always use the plural version. Problem solved. Bob S > On Sep 9, 2018, at 09:50 , hlowe via use-livecode > wrote: > > The Dictionary states that the command 'deleteline': "Deletes the specified > lines from the data grid. > > The syntax is: > > dispatch "DeleteLine" to group "DataGrid" with pLine > > where pLine is a comma-delimited list of one or more integers, indicating > the lines to be deleted. > > So to delete lines 1,2 and 3 of the datagrid "myDG" we would use: > > put "1,2,3" into pLine > dispatch "DeleteLine" to group "myDG" with pLine > > The Dictionary also states that the command 'deletelines' (note the plural > form) is a synonym for deleteline, implying that either form will do the > same thing. > > However 'deleteline' using LC 9.0.1 (RC3) on a Mac (running an iOS App in > both the emulator and on the device) will only accept a single line number > in its 'pLine' parameter. Passing more that one integer in 'pLine' causes > 'deleteline' to fail silently. To delete more that one line, I must use the > pleural form of the command 'deletelines'. > > put "1,2,3" into pLine > dispatch "DeleteLine" to group "myDG" with pLine > > fails silently > > while > > put "1,2,3" into pLine > dispatch "DeleteLines" to group "myDG" with pLine > > succeeds > > A bug, a Dictionary issue or something more complex? > > Can anyone else confirm this? > > Henry > > Ascriva Health Informatics > https://www.ascriva.com > > > > -- > Sent from: > http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid deleteline vs deletelines issue
Thanks Zryip. I have created a bug report: https://quality.livecode.com/show_bug.cgi?id=21576 It would be helpful if there was a support document describing the changes between DG1 and DG2. I wasted a few hours tracking this one down. Henry Ascriva Health Informatics https://www.ascriva.com -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid deleteline vs deletelines issue
Henry, I can confirm, the deleteLine behavior changed in dg2. Inside the dg2 library, deleteLine and deleteLines are different handlers now (deleteLine is managing some animation now according to the comment I've seen in the code). Inside dg1, deleteLine was just calling deleteLines. Same remark with the deleteIndex and deleteIndexes command. Inside DGH I've changed deleteLine for deleteLines for fixing a bug but I did not read the documentation. This is probably something to update inside the documentation with a warn about ascendant compatibility. On Sun, Sep 9, 2018 at 6:51 PM hlowe via use-livecode < use-livecode@lists.runrev.com> wrote: > The Dictionary states that the command 'deleteline': "Deletes the specified > lines from the data grid. > > The syntax is: > > dispatch "DeleteLine" to group "DataGrid" with pLine > > where pLine is a comma-delimited list of one or more integers, indicating > the lines to be deleted. > > So to delete lines 1,2 and 3 of the datagrid "myDG" we would use: > > put "1,2,3" into pLine > dispatch "DeleteLine" to group "myDG" with pLine > > The Dictionary also states that the command 'deletelines' (note the plural > form) is a synonym for deleteline, implying that either form will do the > same thing. > > However 'deleteline' using LC 9.0.1 (RC3) on a Mac (running an iOS App in > both the emulator and on the device) will only accept a single line number > in its 'pLine' parameter. Passing more that one integer in 'pLine' causes > 'deleteline' to fail silently. To delete more that one line, I must use the > pleural form of the command 'deletelines'. > > put "1,2,3" into pLine > dispatch "DeleteLine" to group "myDG" with pLine > > fails silently > > while > > put "1,2,3" into pLine > dispatch "DeleteLines" to group "myDG" with pLine > > succeeds > > A bug, a Dictionary issue or something more complex? > > Can anyone else confirm this? > > Henry > > Ascriva Health Informatics > https://www.ascriva.com > > > > -- > Sent from: > http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Zryip TheSlug http://www.aslugontheroad.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Datagrid deleteline vs deletelines issue
The Dictionary states that the command 'deleteline': "Deletes the specified lines from the data grid. The syntax is: dispatch "DeleteLine" to group "DataGrid" with pLine where pLine is a comma-delimited list of one or more integers, indicating the lines to be deleted. So to delete lines 1,2 and 3 of the datagrid "myDG" we would use: put "1,2,3" into pLine dispatch "DeleteLine" to group "myDG" with pLine The Dictionary also states that the command 'deletelines' (note the plural form) is a synonym for deleteline, implying that either form will do the same thing. However 'deleteline' using LC 9.0.1 (RC3) on a Mac (running an iOS App in both the emulator and on the device) will only accept a single line number in its 'pLine' parameter. Passing more that one integer in 'pLine' causes 'deleteline' to fail silently. To delete more that one line, I must use the pleural form of the command 'deletelines'. put "1,2,3" into pLine dispatch "DeleteLine" to group "myDG" with pLine fails silently while put "1,2,3" into pLine dispatch "DeleteLines" to group "myDG" with pLine succeeds A bug, a Dictionary issue or something more complex? Can anyone else confirm this? Henry Ascriva Health Informatics https://www.ascriva.com -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode