Troubles declaring variables and using variables in modules RRS feed

  • Question

  • Hi, i'm using 2003,

    and i seem to have difficulty decaring and using variables in a module outside a function, or property.

    I want to declare a StreamReader in the module, and a String object eg. line. and then I want to use the "line" to read the first line of a file.

    as the program runs, the first form that pops up is a OpenFileDialog, which will be used to browse to the database in use, that value, or filename will be used to write a string to a file which incorporated the connection string. And the module to read that line and be used as the variable to the connection variable I declared in the module, which will be used through out my program.


    If there's someone who can help me, or assist me in an alternative of how it can be done.

    Thank you

    Thursday, April 6, 2006 1:57 PM