name of current list in OS10.1

Andrew McVeigh omnis at
Mon Jan 4 05:28:18 UTC 2021

You got me on the right track so now in each HeadedList I have added a $construct method and added these two lines

Calculate IvListName as $cfield.$name()
Do $cwind.$objs.[IvListName].$linehtextra.$assign(VFLISTLINEHEIGHT)

I am not sure why the line heights got shrunk in OS10.1 without having a property in the property manager that could be set permanently but this is a neat way of doing it without needing to know the list name or having to worry about how many lists in the window (heaps!)

Thanks again

Andrew McVeigh
Surfway Real Solutions
Phone 02 44412679 Mobile 0418428016

> On 4 Jan 2021, at 3:42 pm, Kelly Burgess <kellyb at> wrote:
> Hi Andrew,
>> $cwind.$objs.List.$linehtextra.$assign(lvLineHeight)
>> . . . . .
>> I was looking for notation to auto set the line height so in the above notation the word List could be replaced with the name of the list automatically
> That could work IF the $name of your headed list object matches the list variable $dataname of the object - that's a convention you could adopt, but it's not always the case, and it wouldn't be obvious that renaming the headed list or changing the list $dataname would cause your code to break.
> If there's only one headed list in your window, you could consider a two-liner using a local hlName variable:
>   Do $cwind.$objs.$sendall(hlName.$assign($sendallref.$name),$ref.$objtype=kHeadedListBox)
>   Do $cwind.$objs.[hlName].$linehtextra.$assign(lvLineHeight)
> And if there are multiple headed lists in that window, maybe you could extend the $sendall's condition parameter to test for a $ref.$userinfo value, and use $userinfo to identify the headed list you want to target. (..,$ref.$objtype=kHeadedListBox&$ref.$userinfo='x')
> Kelly
> _____________________________________________________________
> Manage your list subscriptions at
> Start a new message -> mailto:omnisdev-en at 

More information about the omnisdev-en mailing list