Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. data reading

data reading

Scheduled Pinned Locked Moved Visual Basic
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amanjot
    wrote on last edited by
    #1

    Hi, I am trying to read a formatted data file using streaReader from a simple project which has three forms. When I type the statement, it says variable (streamReader) not defined. Imports system.io statement is there in first form code. I would appreciate any clues. Thanks amanjot

    S D 2 Replies Last reply
    0
    • A Amanjot

      Hi, I am trying to read a formatted data file using streaReader from a simple project which has three forms. When I type the statement, it says variable (streamReader) not defined. Imports system.io statement is there in first form code. I would appreciate any clues. Thanks amanjot

      S Offline
      S Offline
      Suman Singh
      wrote on last edited by
      #2

      You should import system.io in each form on which you going to create object for streamreader... Suman Singh

      1 Reply Last reply
      0
      • A Amanjot

        Hi, I am trying to read a formatted data file using streaReader from a simple project which has three forms. When I type the statement, it says variable (streamReader) not defined. Imports system.io statement is there in first form code. I would appreciate any clues. Thanks amanjot

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Since you only imported the System.Io namespace on the first form, you can only use it's classes on the first form. If you want to use the StreamReader class on you 2nd and 3rd forms, each of them will also have to import the System.Io namespace. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups