Please enable JavaScript to view this site.

A-Shell Reference

Navigation: A-Shell BASIC (ASB) > Statements > Miscellaneous Statements

Line Continuation

Scroll Prev Top Next More

Added March 2025

By default, ASB statements terminate at the end of the physical source line. However, to make the code easier to read and edit, you can continue a logical statement on to the next physical line by appending the  &  character(ampersand) to the end of the line. For example:

xcall MSGBOX, "La cigale, ayant chanté tout l'été," &

    + "se trouva fort dépourvue quand la bise fut venu...", &

    "La Cigale et La Fourmi", &             ! title

    MBTN_OK, MBICON_STOP, MBMISC_TOPMOST

 

Note that the & may be followed by spaces and optionally by a comment as shown (" ! title") above.

See also: