Results 1 to 7 of 7

Thread: App.Path [RESOLVED!]

Threaded View

  1. #1

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253

    App.Path [RESOLVED!]

    Ive got a listbox, so when i click on a certain item, i want to open a text file into my textbox. The text files are in a extra folder called Tutorials. Here is what ive been trying to use to open the file:

    VB Code:
    1. Open App.Path & "\Tutorials\Common Dialog.txt" For Binary As #1
    2. Dim scriptText As String: scriptText = Space(LOF(fnum))
    3. Get #1, , scriptText
    4. txtCode.Text = scriptText
    5. Close #fnum

    But that doesnt work. I even tried changing For Binary to Input. But it doenst load anything. Any ideas?

    THANKS!
    Last edited by Madboy; Nov 2nd, 2003 at 01:23 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width