In the following bit of code, all I'm trying to do is open a text file that my
application has *just* created and written to via a thread (this method is
called at the very end of the thread itself to ensure it exists). The problem
is that everything works as expected but the content of the EditField shows as
blank every time, no matter what I do, even though when I open the file itself
in any text editor and the complete text is in there. I swear this is
practically verbatim from the LR, but it just isn't working. Any ideas? Thanks
dim catalogWindow as WindowViewText
dim catalogTextInput as TextInputStream
if DataMgr.FO_01_ViewCatalog = true then
if DataMgr.FO_SaveLocation <> Nil then
catalogWindow = new WindowViewText
catalogWindow.Show //this works
catalogWindow.Title = DataMgr.FO_SaveLocation.Parent.Name +
LanguageMgr.SeparatorPath + DataMgr.FO_SaveLocation.Name //this works
catalogTextInput = DataMgr.FO_SaveLocation.OpenAsTextFile //this MUST
work otherwise how did the two other commands work?
catalogWindow.EditField1.Text = catalogTextInput.ReadAll //doesn't work;
The EditField appears as blank.
else
WindowMain.Show
end if
end if
Cheers
--
Philip Regan
[EMAIL PROTECTED]
RB2K5r4, Mac OS 10.3.9
_______________________________________________
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>