Skip to content

Line Separator


Line Separator character(s) allow to place multiple statements on the same line.

Description

Statements normally take up a single line with no terminator.

But statements can even be stacked by using a colon (😃 to separate them.

To place multiple statements on the same line, separate the statements with a colon (😃, as in the following example:

start GeSHi

vb
'' These 5 statements are stacked on the same line, using the ':' character as a separator
Dim As String text = "Hello!" : Color 14, 3 : Print text : Color 7, 0 : Sleep

end GeSHi

See also

Back to DocToc

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