Hi Fedor,
The type DataObj.Services is a ListOfDataTypes not a primitive List.
// create delimited string
set str="A_B_C"
// conver to list
set tempList = $ListFromString(str, "_")
// debug output list primitive
zw tempList
tempList=$lb("A","B","C")
// create stand alone List Of DataTypes
set o=##class(%Library.ListOfDataTypes).%New()
// add primitive list to object ListOfDataTypes
set tSC=o.InsertList(tempList)
// Itterate on ListOfDataTypes collection
set k=""
for {set item=o.GetNext(.k) quit:k="" write !,item}
A
B
C
... So anticipate using "GetNext" method on the collection is the way to go.
- Log in to post comments
.png)
.png)
.png)
You might also decide to simply match and suspend bad messages or route to a bad message handler if sequence is not an issue.