Continue

From REALbasicWiki

Jump to: navigation, search

The Continue statement is a form of GOTO for use within loops. Inside a For-Next, While-Wend or Do-Loop block, Continue causes execution to jump to the end of the code inside the block, just before any Boolean condition at the end of the block is evaluated.

Continue accepts various parameters that allow you to describe the jump more precisely within nested loop blocks.

Continue
Continue For | While | Do
Continue For loopVariable


[edit] Sample Code


Function TrueItems(extends f as FolderItem) as FolderItem()
dim itemList() as FolderItem
for i as Integer = 1 to f.Count
dim theItem as FolderItem = f.TrueItem(i)
if theItem is nil then
continue
end if
itemList.Append theItem
next
return itemList
End Function

Personal tools
related