$loadcols $colcount

Das Goravani goravanis at gmail.com
Wed Apr 20 20:03:21 UTC 2022


It’s not wise to use a SendAll when you want to move a value from the first line to the last line in a list.
You can accomplish that with a single line of code, too.

Do myList.[myList.$linecount].myColumn.$assign(myList.1.myColumn)

I’m not positive that line of code works, but I think it does. 

> On Apr 20, 2022, at 3:55 PM, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Hi Kelly,
> I am trying to move the column named 'id' from the first line in a list to the last using:Do lColsList.$sendall($ref.$line.$assign(lColsList.$linecount),($sendallref.lColsName='id'))This code does not react when executed.What have I missed out?
> Rgds, Martin.
> 
> 
>    On Wednesday, April 20, 2022, 12:56:14 AM GMT+3, Kelly Burgess <kellyb at montana.com> wrote:  
> 
> Hi Martin,
> 
>> the grid only displays columns defined as kCharacter
> 
> You're into JS forms now, out of my area - I don't have experience with datagrids on remote forms, so someone else will have to comment.
> 
> Kelly
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 
> _____________________________________________________________
> 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