Using VS 2005:
Here is a piece of code that is saying that a variable doesn't exist which
obviously does:
public string UpdateTables(Ta bleFieldList tableFields,
UnmappedNamesCo llection unmappedNames, DataView dv)
{
bool newSection = false;
bool parameterExists = false; <---- Here is defined
foreignKeys = new ForeignKeyColle ction();
using (conn = new SqlConnection(C onnectString))
{
try
{
conn.Open();
foreach (TableField tf in tableFields)
{
parameterExists = false; <--------
Error
....
The error is:
The name 'parameterExist s' does not exist in the current context
How can that be?
It is global for the function so how can that error be there?
Is the "using" causing a problem?
Or am I just having a brain fade here?
Thanks,
Tom