0

Hi all,
I am using vb.net2003. I have one solution and different projects under its. But, I don't know how to declare a varibale for many projects and use it?
Can anyone show me how to do it?

Thanks and regards,
zawpai

3
Contributors
7
Replies
8
Views
5 Years
Discussion Span
Last Post by zawpai
0

Example for string.

Dim sample as String

There are lots of data type and you can do some research..

0
      HI Friends,
      For entire Application you can define like pubilc v_name as string 
  in code file and for particular class you can define like public v_name as string and for particular function you can define like dim v_name as string 

Edited by vasim jada

0

Hi brylle and vasim,

Thanks for your information.
I understand the vairable is declared in "Module.vb" and can be used in multiple form. But, this method can't be used and shared between multiple projects. So, I get the problem for this issue.
Do you have any better ideal?

Thanks

0

Please see the attached file, that is my sample "Solution porject".

Attachments Multiple_projects.JPG 12.88 KB
0

global variable only can be used under same project. If you have multi-project and you want to share a data or variable between them, we can't declare normal way.
So, I am finding a way how to do it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.