T
tshad
I have a class trying to access some public static variables in another
class and one I can't seem to see.
In the class where they are defined, the look like:
public static object statusOutput = null;
public static string fileInProcess = null;
public static bool serviceRunning = false;
The only difference between them is the type.
temp = FieldNameMapSetup.FieldNameMapSetup.serviceRunning;
stemp = FieldNameMapSetup.FieldNameMapSetup.fileInProcess;
Log.Write(FieldNameMapSetup.FieldNameMapSetup.statusOutput);
But for some reason I can't seem to see the statusOutput variable from the
other class. I can see fileInProcess and serviceRunning.
But statusOutput gives me the error:
'FieldNameMapSetup.FieldNameMapSetup' does not contain a definition for
'statusOutput'
But as you can see from above, it does???? It doesn't show in the
intellisense either.
Also, I have a Textbox in that same class that gives me the same error:
FieldNameMapSetup.FieldNameMapSetup.Status.Text
It says that Status does not exists, but it does as a TextBox.
What do I have to do to access this Textbox and statusOutput?
Thanks,
Tom
class and one I can't seem to see.
In the class where they are defined, the look like:
public static object statusOutput = null;
public static string fileInProcess = null;
public static bool serviceRunning = false;
The only difference between them is the type.
temp = FieldNameMapSetup.FieldNameMapSetup.serviceRunning;
stemp = FieldNameMapSetup.FieldNameMapSetup.fileInProcess;
Log.Write(FieldNameMapSetup.FieldNameMapSetup.statusOutput);
But for some reason I can't seem to see the statusOutput variable from the
other class. I can see fileInProcess and serviceRunning.
But statusOutput gives me the error:
'FieldNameMapSetup.FieldNameMapSetup' does not contain a definition for
'statusOutput'
But as you can see from above, it does???? It doesn't show in the
intellisense either.
Also, I have a Textbox in that same class that gives me the same error:
FieldNameMapSetup.FieldNameMapSetup.Status.Text
It says that Status does not exists, but it does as a TextBox.
What do I have to do to access this Textbox and statusOutput?
Thanks,
Tom