Table of Contents

5.4.5.9 Write Statement

Note

This section describes the implementation of MS-VBAL §5.4.5.9 Write Statement.

Syntax

AST node Instruction kind(s) Notes
PrintStatementNode Simple Token: Write.

See RD-VBAL §3.4.3 File Statements.

Runtime Semantics

Write # and Input # use one text format: Write # writes it, and Input # reads it (RD-VBAL §5.4.5.10 Input Statement).

Text Format

Value Written as
String A quoted string.
Boolean True #TRUE#
Null #NULL#
An Error value #ERROR n#, where n is the error value's number.
Date #yyyy-mm-dd hh:mm:ss#

Implementation

Write # writes through the channel's character output surface, IFileChannelOutput, which it shares with Print #. Width # sets that surface's maximum line length (RD-VBAL §5.4.5 File Statements).


⏮️ RD-VBAL §5.4.5.8 Print Statement | ⏭️ RD-VBAL §5.4.5.10 Input Statement