Thanks Terry,
>> Why not use a variant?
>> Dim v as Variant
>> //To read:
>>
>> v = Filestream.ReadLine
>> EditField1.BackColor = v
>>
That works well, thanks.
>> //To write:
>>
>> v = EditField1.BackColor
>> Filestream.WriteLine v
I prefer
Filestream.WriteLine "&c" + (Right(Cstr(EditField1.BackColor),6)
>>The first example I gave shows how a variant can be a simple way to
>>convert a color to a string to be written in a TextOutputStream and
>>convert it from a string (ReadLine) to a color to set an editfield's
>>backcolor.
That's exactly what I needed, the v = Filestream.ReadLine part.
Sometimes when data is added to an editField, if the data is higher or lower
than some particular value, changing the editfield's backColor highlights the
value.
To display the string from ReadLine as the caption for the
BevelButton does *not* require a variant.
All I do for that is:
BevelButton1.caption = Filestream.ReadLine
Filestream.WriteLine BevelButton1.caption
and that works fine.
Thanks again.
Lennox
---------------------------------
Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>