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 = FieldNameMapSet up.FieldNameMap Setup.serviceRu nning;
stemp = FieldNameMapSet up.FieldNameMap Setup.fileInPro cess;
Log.Write(Field NameMapSetup.Fi eldNameMapSetup .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:
'FieldNameMapSe tup.FieldNameMa pSetup' 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:
FieldNameMapSet up.FieldNameMap Setup.Status.Te xt
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 = FieldNameMapSet up.FieldNameMap Setup.serviceRu nning;
stemp = FieldNameMapSet up.FieldNameMap Setup.fileInPro cess;
Log.Write(Field NameMapSetup.Fi eldNameMapSetup .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:
'FieldNameMapSe tup.FieldNameMa pSetup' 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:
FieldNameMapSet up.FieldNameMap Setup.Status.Te xt
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
Comment