Hi, confused why this code isnt working.
I'm defining the following:
Now to my mind, the code shouldnt enter the WHILE loop unless link and link.nextLink() arent null (ie the objects they reference exist in the list). But my code enters the While loop, gets get to nextObject=Object(link.nextlink().value()) and complains about an unhandled exception.
I guess link.nextlink() is the problem, but I cant see the issue?
Thanks!
I'm defining the following:
link=list.firstLink() while link and link.nextLink() currentObject=Object(link.value()) nextObject=Object(link.nextlink().value()) wend
Now to my mind, the code shouldnt enter the WHILE loop unless link and link.nextLink() arent null (ie the objects they reference exist in the list). But my code enters the While loop, gets get to nextObject=Object(link.nextlink().value()) and complains about an unhandled exception.
I guess link.nextlink() is the problem, but I cant see the issue?
Thanks!