472,995 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

private field is never 'assigned' ; force comiler to stop complaining?


Not sure if this is exactly the right place to post this, so let me
know if there is a more relevant group.

I have a series of private members in my class, none of which are
'assigned to' as far as the compiler can tell. They *are* set, just by
reflection in a base class. Each member is tagged with an attribute
that tells the binder to do this, so I was hoping to use this as a
basis for supressing or eliminating the compiler warning.

I know that the ASP.Net controls, when you put them in something that
derives from Page, do not complain about this. Perhaps this is a
starting point?

The code currently looks like this :
[BindForMe] protected Textbox txtBox = null;

The null is required, or the error shows up.

Not even sure exactly what question to ask, so any help would be much

Andrew Backer

Jul 22 '05 #1
0 943

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

Similar topics

by: Old Timer | last post by:
I wish to type in a number in my "Code" field, for instance 1060, I then wish the number 1060 to trigger an event that will fill in the next field (township field) For instance, 1060 brings up and...
by: Sahil Malik [MVP] | last post by:
Public Private Key Pairs - How do they work? ----------------------------------------------- I was looking at a presentation recently in which it was suggested that - User 1 Encrypts a message...
by: Andrew Backer | last post by:
I have a series of class variables that are assigned to through reflection. Every time I compile one of these classes I get this warning : warning CS0649: Field 'xxx' is never assigned to, and...
by: Andrew Backer | last post by:
Hello, Not sure if this is exactly the right place to post this, so let me know if there is a more relevant group. I have a series of private members in my class, none of which are 'assigned...
by: **Developer** | last post by:
Public Shared Sub junk... Dim PF2 As Wnd.PARAFORMAT2 PF2.cbSize = Marshal.SizeOf(PF2) 'ERROR HERE PF2.dwMask = Wnd.PFM_LINESPACING ....snip
by: Gandalf | last post by:
Hi, I created a C# application which is using many private variables. I'm working on VS .NET 2003 and have the following error (whereas the variable is used in the method of the class !) : ...
by: John Salmon | last post by:
g++ complains about illegal access to a private member when the following is compiled with a private copy constructor for the class C. When the copy constructor is public, the program runs and...
by: archana | last post by:
Hi all, can anyone tell me differene between public static and private static method. how they are allocated and access?. thanks in advance.
by: marktxx | last post by:
Although the C90 standard only mentions the use of 'signed int' and 'unsigned int' for bit-fields (use 'int' at your own risk) and C99 adds _Bool. It seems that most compilers create the size of...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.