gettingstarted
[Top] [All Lists]

Re: Reading a stream

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Reading a stream
From: Seth Willits <seth at freaksw dot com>
Date: Thu, 29 Jul 2004 15:26:38 -0700
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <BD2EE0E4 dot 3F4B%bheibert at verizon dot net>
On Jul 29, 2004, at 3:14 PM, Brian Heibert wrote:

dim readstream as textinputstream
redValue = readstream.readByte()

Now I get this method or property does not exist.

That's because there is not such method as ReadByte for TextInputStream. You need to use the BinaryStream. Also, you can simplify your code by using:

theColor = RGB(readstream.ReadByte, readstream.ReadByte, readstream.ReadByte)



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic

"Organized people are just too lazy to look for things."
    --
------------------------------------------------------------------------ ---

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>