Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global properties or varables
Message
From
05/09/2005 17:31:43
 
 
To
05/09/2005 15:04:41
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01046793
Message ID:
01046846
Views:
14
Juan,

>is about an ini or configuration file which i use for set connection strings, i would like to use the custom object to retrieve and store info without using a file <

You might have missed what Cetin was referring to in the link to the thread he posted. He specifically talks about using static constants (although, in your case, you'd need to use static properties, complete with get and set methods). Read this again ... Message #1040896

~~Bonnie




>Cetin:
> That's the way i use in fox , i store the custom object to a public variable or hang it on the _screen and i can read it from anywhere in my app, but i can't find the way in .net, the thread you pointed is about an ini or configuration file which i use for set connection strings, i would like to use the custom object to retrieve and store info without using a file for example i use a form to select a customer and i want to store his id in an object and then be accessed from any form in my application, as you said in fox i can keep that custom object as public variable or add it as an object to the _screen but i can not find the way in .net.
>
>i hope you ´ve understood me and tahnk you in advance for your help.
>
>
>>>In Vfox i use _screen to hang properties or objects that can be accessed by forms , i m trying to do the same in .Net using a mdiform in which i create some public properties but i can't find the way for those propeties in MdiForm may be accessed by child forms.
>>
>>Juan,
>>In VFP too normal way is to use a custom object (oMyApp) to store such info. You can do the similar in .Net. Check Thread #1040828 (it's C# but gives the idea).
>>Cetin
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform