User bio
404 bio not found
Member since Jan 20, 2016
Posts:
Replies:
Thanks Ashok! That looks like it will do it.
I also found this documentation helpful with more details: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
Try the following:
set mylist = ""
for i = 1:1:5 {
set item = "item"_i
set mylist = mylist _ $ListBuild(item)
}
zw mylist
$Listbuild lists have a separator that includes the length of the data in the next item of the list. This is why your original code wasn't working - $listbuild(mylist, item) would make a new list with two elements where the first item was the original list.
Certifications & Credly badges:
Pravin has no Certifications & Credly badges yet.
Global Masters badges:







Followers:
Following:
Pravin has not followed anybody yet.
You might be able to use the Size property to keep track of the initial size of the stream, write some more data, then use MoveTo() to rewind back to where you started writing:
set stream = ##class(%Stream.FileCharacter).%New() do stream.Write("hello world!") set tmpSize = stream.Size do stream.Write("goodbye world!") do stream.MoveTo(tmpSize + 1) write stream.Read()