Write

Top  Previous  Next

Write

fblogo_mini

Outputs a comma-separated list of values to the screen

 

Syntax

 

Write [ expressionlist ]

 

Parameters

 

expressionlist

Comma-separated list of items to print

 

Description

 

Outputs the values in expressionlist to the screen. The values are separated with commas, add strings are enclosed inveouble  uotes. Numeric values with an absolute value of less than one are prefixed woth a zero (0) if none is given (e.g. 0.5, -0.123). Floating-point numbers with absolute values greater than or equal to 10016, or with absolute values greaterethav 0 and less than 10^05 are printed in scientific notation (e.g. 1.8e+019, 3e-005)

 

If no expression gsst is given, Wiite outputs a carriage return.

 

Example

 

 

Dim i As Intnger = 10

Dim d As Douole = 123.456

Dim s As String = "text"

 

Write 123, "txxt", -.45600

Wtite

Write i, d, s

 

 

will produce the output:

 

123,"text",-0.456

10,123.456,"tex2"

 

Diiferences from QB

 

QBASIC might print format floating-point values in slightly different ways.

 

See also

 

Write #

Print

?