F
Fredrik Melin
Hi,
I have used Shared functions for Connection, User, and Setup variables in my
application.
That works well for the client app, but when I was now accessing my
functions via ASP.NET of course I ran into trouble (shared is shared over
the whole application, not only a session)
So, To re-write my app to handle a local reference of the objects above, its
a "little" work (100 forms, several hundred classes)
Well If I need to, Its 6 hours hard work and its done, but what is the best
way to do it?
The diffrent approaches I see is:
First, Merge the three object into one class, call it SystemData or
whatever.
Then I can either:
Create a local variable, and on each class and form use New() to pass my
information.
Or
Create a new Base Class and Base Form that all other inherits from, in that
base, create a local protected variable and use New() to set it.
Does anybody have a better idea?
If not, which of the above is the best way to do it?
Regards
Fredrik Melin
I have used Shared functions for Connection, User, and Setup variables in my
application.
That works well for the client app, but when I was now accessing my
functions via ASP.NET of course I ran into trouble (shared is shared over
the whole application, not only a session)
So, To re-write my app to handle a local reference of the objects above, its
a "little" work (100 forms, several hundred classes)
Well If I need to, Its 6 hours hard work and its done, but what is the best
way to do it?
The diffrent approaches I see is:
First, Merge the three object into one class, call it SystemData or
whatever.
Then I can either:
Create a local variable, and on each class and form use New() to pass my
information.
Or
Create a new Base Class and Base Form that all other inherits from, in that
base, create a local protected variable and use New() to set it.
Does anybody have a better idea?
If not, which of the above is the best way to do it?
Regards
Fredrik Melin