Datagrid deleteline vs deletelines issue

Bob Sneidar bobsneidar at iotecdigital.com
Mon Sep 10 11:22:17 EDT 2018


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 <use-livecode at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list