Thanks mate for your answer.
My goal was create an string with all codes of activity from a list, and it should be in order alphabetical because the list could be in other order and this key should be the same
ClassMethod CreateKey(pList As %Collection.ListOfObj) As %String
{
for i=1:1:pList.Count()
{
set code = pList.GetAt(i).Codigo
set list(code)=""
}
set myKey = ""
set key=$ORDER(list(""))
while (key'="")
{
set myKey = myKey_key_"#"
set key=$ORDER(lista(key))
}
return myKey
}Thanks for all your time and all explications about this.
Best regards,
Kurro
- Log in to post comments
.png)
.png)
.png)
