gettingstarted
[Top] [All Lists]

Re: How do I read my binarystream data

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: How do I read my binarystream data
From: Robert Mc <dragon dot fire at mac dot com>
Date: Tue, 27 Jul 2004 18:48:32 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <BD2C4205 dot 3F0E%bheibert at verizon dot net> <AD046B36-E026-11D8-847C-000393969750 at mac dot com>

On Jul 27, 2004, at 6:42 PM, Robert Mc wrote:
blah blah blah and then...

This should be easy. Use this code:

Dim redValue, greenValue, blueValue as Integer
Dim theColor as Color
Dim prefFile as FolderItem
Dim stream as BinaryStream

prefFile = PreferencesFolder.child("NovaWeb Skin")
stream = prefFile.createBinaryFile()
redValue = stream.readByte()
greenValue = stream.readByte()
blueValue = stream.readByte()
theColor = RGB(redValue, greenValue, blueValue)

Correction:

Dim redValue, greenValue, blueValue as Integer
Dim prefFile as FolderItem
Dim stream as BinaryStream

prefFile = PreferencesFolder.child("NovaWeb Skin")
stream = prefFile.createBinaryFile()
redValue = stream.readByte()
greenValue = stream.readByte()
blueValue = stream.readByte()
browser.backColor = RGB(redValue, greenValue, blueValue)

_______________________________________________
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>