Remove a column in a list

Martin Obongita martin.obongita at yahoo.com
Fri Nov 3 12:55:07 UTC 2023


 
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.


More information about the omnisdev-en mailing list