11-18-2024, 11:23 PM
I am trying to understand the LDlist Objects, here is what I am confused about:
vocabList[1] = "alpha"
vocabList[2]= "Beta"
vocabList[3]= "Zeta"
vocabList[4] = "Eta"
newarray = LDList.Copy(vocabList)
textwindow.writeline(LDList.Count(newarray))
what I am confused is that the textwindow would come back that it is "0"
However. if using LDlist.createfromvalue, then LDlist.count will come back as 4, but if I tried to print the value in textwindow, there is nothing.
this is the test code I tried:
for i = 1 to ldlist.count(newarray)
textwindow.writeline(newarray[i])
endfor
So, what am I doing wrong here?
vocabList[1] = "alpha"
vocabList[2]= "Beta"
vocabList[3]= "Zeta"
vocabList[4] = "Eta"
newarray = LDList.Copy(vocabList)
textwindow.writeline(LDList.Count(newarray))
what I am confused is that the textwindow would come back that it is "0"
However. if using LDlist.createfromvalue, then LDlist.count will come back as 4, but if I tried to print the value in textwindow, there is nothing.
this is the test code I tried:
for i = 1 to ldlist.count(newarray)
textwindow.writeline(newarray[i])
endfor
So, what am I doing wrong here?