gettingstarted
[Top] [All Lists]

Re: Open a file

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Open a file
From: Brian Heibert <bheibert at verizon dot net>
Date: Wed, 27 Sep 2006 20:52:12 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <5B602FE6-BDD6-4A43-8C07-7C9C879AD403 at verizon dot net> <9AAEDF69-C5FD-450D-A7D9-7C3B5BD05E43 at hit dot net>
I will try that

I guess i lost the email sorry

On Sep 27, 2006, at 7:43 PM, CV wrote:



On Sep 27, 2006, at 5:56 PM, Brian Heibert wrote:

Can someone refer me to a page in a manual or something that would show me how to open a file
I looked at the TextEdit tutorial example

Brian,

The other day I posted this example for you when you wanted to open a file and load it into a listbox. Where do we stand on that?

 dim i as integer
  dim File as FolderItem
  dim FileStream as TextInputStream
  file=GetOpenFolderItem("")
  If file <> Nil and file.exists then
    FileStream = file.OpenAsTextFile
    If FileStream <> Nil then
      Do Until FileStream.EOF
        self.urlsv.AddRow FileStream.ReadLine
      Loop
    End
  Else
    MsgBox "File error"
  End

Best,

Jack



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

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


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