473,395 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Scope of a Module

Hello,

° If you declare a Module (Shared Class) like:

Namespace Global.Structs
Module Credentials
Private _UserFullName As String
Public ReadOnly Property UserFullName() As String
Get
Return _UserFullName
End Get
Set(ByVal Value As Boolean)
_UserFullName = Value
End Set
End Property

.......... more stuff ...........

End Module
End Namespace

° Reference it in another project (TestApp)

Will it be the same instance if run TestApp twice on the same Computer?

eg: You set the value Global.Structs.Credentials.UserFullName when the user closes the LoginDialogBox:
The first instance of the Application he logs in as "John"
The second instance of the Application he logs in as "Doe"

Will the UserFullName be "John" and "Doe" in the according Aplpications, or will it become "Doe" in both applications?

Thanks,

Michael
Nov 20 '05 #1
0 680

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Inyeol Lee | last post by:
I'm an OOP newbie, and needs help on subclassing from different module. I made a base module a.py which contains two classes C1 and C2; ## start of a.py class C1(object): def m(self):...
4
by: Gabriel Zachmann | last post by:
I am relatively new to python, but i know some other languages, such as C++, fairly well. After reading up a little bit in the reference manual, section 4.1, and searching this NG, i still have 2...
4
by: Hugh Macdonald | last post by:
We're starting to version a number of our python modules here, and I've written a small function that assists with loading the versioned modules... A module would be called something like:...
9
by: Steven T. Hatton | last post by:
It was once suggested to me that I could accomplish much the same thing that modules would accomplish (if C++ had modules) by writing my entire program - except for main() - inside of a class. ...
2
by: Ashish Shridharan | last post by:
Hi All I have been tryign to figure out the scope of a module as shown declared below in a web environment. My Questions are Is this module shared across multiple instances of the...
10
by: Brian | last post by:
If i declare a module level oledbconnection with each request for the page, the variable remains in scope? I get open.executing error message on subsequent calls for the page. I assumed ASP.Net...
2
by: Anand Sagar | last post by:
If I declare a variable in a .vb module file , like Public Module modMain Public temp As String End Module I am able to access the variable temp in all the pages of my site. However, I want...
0
MMcCarthy
by: MMcCarthy | last post by:
We often get questions on this site that refer to the scope of variables and where and how they are declared. This tutorial is intended to cover the basics of variable scope in VBA for MS Access. For...
3
by: John Dann | last post by:
Trying to learn Python here, but getting tangled up with variable scope across functions, modules etc and associated problems. Can anyone advise please? Learning project is a GUI-based...
9
by: mrstevegross | last post by:
I ran into a weird behavior with lexical scope in Python. I'm hoping someone on this forum can explain it to me. Here's the situation: I have an Outer class. In the Outer class, I define a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.