Reads a specified number of bytes from an InStream object. Data is read in binary format.
[Read := ] InStream.Read(Variable[, Length])
Describes the variable that will receive the data that is read.
Describes the number of characters to be read. If you do not specify Length, the size of the variable is used. In the case of data types other than string, code, and binary, if you specify a length that differs from the size of the variable, an error message appears.
Property Value/Return Value
The return value is the number of characters that were read.
If the optional return value (READ) is not present and the data being read is less than the length requested to be read, an error message will appear.
If the return value is present, you must verify the validity of the data that has been read.
recBinaries.FIND('-'); recBinaries.CALCFIELDS(Data); recBinaries.CREATEINSTREAM(InStream); InStream.READ(Title); InStream.READ(Name); InStream.READ(Surname); InStream.READ(AltStartDate);