2010-08-08

Cheat sheet of flow control in REALbasic

As of REAL Studio 2010, here's a quick list of the flow control keywords in REALbasic language.

Loops (where 'boolean' means some expression that resolves to Boolean value):

  • While boolean … Wend   (test at top of loop)
  • Do … Loop Until boolean    (test at bottom of loop)
  • For someVar = 0 To limit … Next   (regular FOR loop)
  • For someVar As Integer = 0 To limit … Next   (declaring data type of counter in FOR loop)
  • For Each elementVar As arrayType In array … Next   (for looping an array)

No comments:

Post a Comment