Pass variable value into class and use as public within class

C

csgraham74

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
 
T

tomb

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
Pass it byref to the Sub New of the new class

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top