Studio 10/11: Referring to list.$remove(0), list.0.$selected
Doug Easterbrook
doug at artsman.com
Wed Feb 7 15:56:26 UTC 2024
really?
line number ‘0’ has referred to the current line forever .. Pretty sure it was that way in omnis 7 as well.
as in
do list.$first(ktrue) returns #F
while flag true
do list.$next(0,ktrue) returns #F
end while
and the documentation says specifically that line zero is the current line
$next(rRow|iRowNumber [,bSelectedOnly=kFalse, bBackwards=kFalse, condition]) sets $line to the next line after the line identified by the first argument. If iRowNumber is zero, processing starts at $line. See $first for definitions of the other parameters
my understanding is that any reference to a list line, where line is 0 is the current line
as in these are all equivalent
calculate list.0.whatever
calculate list.[$list.$line].whatever
calculate list.whatever
do list.$remove()
do list.$remove(0)
do list.$remove([list.$line])
do list.$remove(list.$line)
I’ve always treated 0 and currentliine the same. so if that what we all use …. then breaking the code would be a bad thing to do.
if it stops working on the desktop, I’d push back. Just me.
Doug Easterbrook
Arts Management Systems Ltd.
mailto:doug at artsman.com
http://www.artsman.com
Phone (403) 650-1978
> On Feb 7, 2024, at 4:03 AM, Graeme Whiting <Graeme.whiting at CATALINA-SOFTWARE.CO.UK> wrote:
>
> Hi all,
>
> I’ve been told that using list.$remove(0) or ivlist.0.$selected is not documented functionality in Omnis Studio and therefore shouldn’t be used(!)
>
> This came about when I found that this syntax doesn’t work in client methods, and Omnis said they won’t fix it as it should never have worked in that way on desktop 😊
>
> Just a heads-up really if anyone else has been using it.
>
> Graeme.
>
> [https://images10.sigsync.com/dashboard/editor/templates/images/csl_logo_transparent_2.png]
> [Facebook]<https://www.facebook.com/CatalinaSoftware/>
> [LinkedIn]<https://www.linkedin.com/company/catalina-software-ltd/>
> [Twitter]<https://twitter.com/CatalinaFreedom>
> Graeme Whiting
> Founder & Managing Director
> [https://azureimages.sigsync.com/sigsync/small_icons/phoneicons/landline-black.png]
> 01366 386611<tel:01366%20386611>
> [https://azureimages.sigsync.com/sigsync/small_icons/websiteicons/website-black.png]
> catalina-software.co.uk<https://catalina-software.co.uk>
> [https://azureimages.sigsync.com/sigsync/2a71928ab099177ea8a53021bc03d625_freedomglobalbannerz.png]
>
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list