Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27329

a little problem with scope

$
0
0
i have 2 forms and a module1.

in the module1 i define a class windowdata1.
in this same module i define an instance of windodata1

Public wd1 As New windowdata1
which should have global scope and it seems to with the following restriction
in form2 i try to define a public function as follows:

public sub wee(byval wd1 as windowdata1)
{

}

it does not allow me to do this saying that cannot expose module windowdata1

but it does allow me to make a private sub of:

private sub wee(byval wd1 as windowdata1)
{

}

however i wish to call this sub from form1 and so out of luck.

i hope this is not a profound question!

thank you

follys

Viewing all articles
Browse latest Browse all 27329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>