type while/wend loop

BlitzMax Forums/BlitzMax Beginners Area/type while/wend loop

For some reason I can't get the above to work, is there a way to do the following in reverse order?

Global GUI_WINDOW_LIST:TList = CreateList()
Type GUI_WINDOW
End Type

For Local wgui:GUI_WINDOW = EachIn GUI_WINDOW_LIST
Next