Skip to content

FOR

Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgFor Last revised: 2020-01-25

Control flow statement, open statement clause, or operator depending on context.

Syntax

  1. For iterator = startvalue To endvalue [ Step increment ]
  2. Open [ device ] "filename" For filemode As #handle
  3. declare operator For ( byref stp as datatype )

Description

For is used in multiple contexts:

  1. As a loop control statement — see For...Next for full documentation.
  2. As part of the Open file statement — specifying file mode.
  3. As part of an operator declaration for user-defined types.

See Also

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft