Pass variable value into class and use as public within class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • csgraham74@gmail.com

    #1

    Pass variable value into class and use as public within class

    Hi there,

    Having done much web development in recent times im a bit new to vb.net
    and uses of classes.

    Basically in my VB.Net code i call a connection to unidata then using
    this connection i set a variable value e.g. val_A.

    I then instantiate a class

    within the class i need access to my val_A which i have set in a
    seperate class.

    how do i do this ???

    any help appreciated

    CG

  • tomb

    #2
    Re: Pass variable value into class and use as public within class

    csgraham74@gmai l.com wrote:
    [color=blue]
    >Hi there,
    >
    >Having done much web development in recent times im a bit new to vb.net
    >and uses of classes.
    >
    >Basically in my VB.Net code i call a connection to unidata then using
    >this connection i set a variable value e.g. val_A.
    >
    >I then instantiate a class
    >
    >within the class i need access to my val_A which i have set in a
    >seperate class.
    >
    >how do i do this ???
    >
    >any help appreciated
    >
    >CG
    >
    >
    >[/color]
    Pass it byref to the Sub New of the new class

    Tom


    Comment

    Working...