Put Instruction

Syntax:

Put StreamNum, [RecordNum], var

Group: File

Description:
Write a variable's value to StreamNum.

Parameter Description

StreamNum Streams 1 through 255 are private to each macro. Streams 256 through 511 are shared by all macros.

RecordNum For Random mode files this is the record number. The first record is 1. Otherwise, it is the byte position. The first byte is 1. If this is omitted then the current position (or record number) is used.

See Also: Get, Open.

Example:

Sub Main
  Dim V As Variant
  Open "SAVE_V.DAT" For Binary Access Write As #1
  Put #1, , V
  Close #1
End
Sub