Get Instruction

Syntax:

Get StreamNum, [RecordNum], var

Group: File

Description:
Get a variable's value from 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: Open, Put.

Example:

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