You have to make sure that every possible path through the code will initialize the variables before you use them.
When and where you initialize them depends on what you need. The value you give...
Type: Posts; User: jps
You have to make sure that every possible path through the code will initialize the variables before you use them.
When and where you initialize them depends on what you need. The value you give...
You declared the variables.
The complaint is that they were not initialized. (A fancy way to say "given a value")
Every possible path through your code that leads up to the use of any variable...
If you look at every possible path through the code, when you get to that point there is a chance a variable was not initialized.
A scenario the compiler is complaining about.
What happens if the...
If I understand your text, all you have to do is pass that value to a method. This link may help.
If not post the code where you are trying to use the variable and getting the error message.
Reading it now, as a side note, see this link as I read your "big wad of text".
Can you show where you are trying to use the variable that is not working?
Also please use
so the code gets a colorful highlight for my old eyes.