Studio 10/11: Referring to list.$remove(0), list.0.$selected

Mike Matthews - Omnis omnis at lineal.co.uk
Wed Feb 7 15:23:17 UTC 2024


Ah, oh, hmmmmm..

We use ‘iList.0.$selected’ about 2,243 times in our libs.  This is used to detect if the current line is selected.
From StudioTips
'# Is the current line selected?
      Calculate bSelected as List.0.$selected'


We use ‘iList.$remove()’ about 608 time as well.
From Omnis Help Manual
'$remove(rLine|iLineNumber|kListDeleteSelected|kListKeepSelected) deletes the specified lines from the list'

We have used these command since many moons have passed, so why now I wonder, and what should we use instead, as Rudolf asks?

And who said this to you Graeme, in what context as well?

Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>

www.lineal.co.uk<http://www.lineal.co.uk/>

www.sqlworks.co.uk<http://www.sqlworks.co/>



On 7 Feb 2024, at 12:03, Graeme Whiting <graeme.whiting at catalina-software.co.uk<mailto:graeme.whiting at catalina-software.co.uk>> wrote:

Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.



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://linkprotect.cudasvc.com/url?a=https%3a%2f%2fimages10.sigsync.com%2fdashboard%2feditor%2ftemplates%2fimages%2fcsl_logo_transparent_2.png&c=E,1,yBVvxti9jB7tsp2k-VFxAWwigAFlUvhg3Zafs4Uf3wKA1qWjcHn10kchUC4VOXrk_tsr9ZfPMo8OMKc5hevWDJQ2fSelvQtm0Ott7bZC4sRGi_-5&typo=1]
[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://linkprotect.cudasvc.com/url?a=https%3a%2f%2fazureimages.sigsync.com%2fsigsync%2fsmall_icons%2fphoneicons%2flandline-black.png&c=E,1,1YItaL2ebT06sX1MY6VZKEqU7WLQLYvwZt7oe8cBMYY7JTE99jjM9meMwaeF4UeMsCV24u2Kwa9ICYS0Glbp4HKz1XPrsJ44lJ_p6XGOcZXnMYEid-Du2w,,&typo=1]
01366 386611<tel:01366%20386611>
[https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fazureimages.sigsync.com%2fsigsync%2fsmall_icons%2fwebsiteicons%2fwebsite-black.png&c=E,1,IdJRUe5jZkeihBXRnoD1ABINzWxbh3T322zCqZNJDvCh4hAU-HI1F18KEwDD5QM4Oze2T8vm9Tw8SF9ZBBTogD9QFJfwJvQSHA4q2qR60MsVALCK4A,,&typo=1]
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fcatalina-software.co.uk&c=E,1,ubRemAnkkNzsJv6MduXUXC7GRDUcTKi0icvHby47WwN-p8c8EqywD7QNsQh08L41YurAQaLCdJQQv6c85YVzW3B8vlEXESE9XMfTGONEy7x_LiA,&typo=1<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fcatalina-software.co.uk&c=E,1,I0vex3vv5ICLjzoCwK2E7mFdmbSCBUvNrA1gTtl4JivhooGtHgMIb-xB1TX8oSQ2igC7SkyzaA4AL6TrddNxoipqDPefaBqYjNx8PRGgEyeXfcsUQ6SZvA,,&typo=1>
[https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fazureimages.sigsync.com%2fsigsync%2f2a71928ab099177ea8a53021bc03d625_freedomglobalbannerz.png&c=E,1,y-SU7NqtPQ7l433PO0Wqms9EGCMqLYh8rsiFVxvw4deb5hHZz_zclsaEKhjf7SmJprD9re1HQzbg9vmZBPjpcVWqlJ5u7N0ErG90TAqVjRQPjAPhhvkRmXho&typo=1]

_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,EavLC_sKj6E-ovJPoWADpef2y-gXxGzT0b9UwGTqlEkZRPtmuNX6pPyrVb_1xuoozAw7nfIjLnit2DuWfMJjk75cGjjU6XaSkpAXRRxTj56ONyE,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list