Remove a column in a list

Martin Obongita martin.obongita at yahoo.com
Fri Nov 3 13:21:41 UTC 2023


 Hi Guys,
Forget this. I have seen where I was not making sense. You can't delete a non-existent column.
Regards,

    On Friday, November 3, 2023 at 03:55:13 PM GMT+3, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:  
 
  
I have a list that is defined from variablefields and NOT from an SQL class, like this:

/*

Do iDataList.$clear()

Do iDataList.$define()

Do iDataList.$add()

For iSelectedDataList.$line from 1 to iSelectedDataList.$linecount

Calculate lColsName as iSelectedDataList.[iSelectedDataList.$line].lColsName

Do iDataList.$cols.$remove(iSelectedDataList.$line)

Do iDataList.$cols.$add(lColsName,kCharacter,kSimplechar,255)

Calculate iDataList.[1].[lColsName] as lColsName

End 

*/
I want to remove a column in the iDataListwith the command $cols.$remove(lLineNum)
This returns an error “Quitting Omnis dueto unrecoverable error: Insufficient memory available. DMLSTUFF.CPP: 2075.”

Where I am annoying Omnis 10.22 in thiscommand?
Martin O.
_____________________________________________________________
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