BinaryStream.ReadCurrency

From Xojo Documentation

Method

BinaryStream.ReadCurrency() As Currency

Supported for all project types and targets.

Reads a Currency value from the stream and returns it as a Currency.

Notes

If you read over the end of the stream you get zero returned from this method. No error and no exception. If you want to check for this error, you can check the EndOfFile, BytePosition, and Length properties.

Sample Code

Var d As Currency
Var readStream As BinaryStream = BinaryStream.Open(readFile, False)
.
d = readStream.ReadCurrency