J
Jan
Here's the code with the problem:
class Startup
{
public static string Sym;
public static string PrevDate;
public static int [ ] Highest = new int[1800];
// ______________
public static void Begin ()
{
Sym = "ZQ";
PrevDate = "081803";
ReadMBC.ReadMB1(Sym,PrevDate,Highest);
}
}
}
The compiler says "The type or namespace name ReadMBC could not be found."
However, ReadMBC is a public class and ReadMB1 is a public static member
function of that class. It is not a namespace, and it compiles within the
same namespace as that of class Startup (shown above). The dot syntax shown
is correct for calling a member function of a class outside the class where
the call is made. What am I doing wrong?
Thanks.
class Startup
{
public static string Sym;
public static string PrevDate;
public static int [ ] Highest = new int[1800];
// ______________
public static void Begin ()
{
Sym = "ZQ";
PrevDate = "081803";
ReadMBC.ReadMB1(Sym,PrevDate,Highest);
}
}
}
The compiler says "The type or namespace name ReadMBC could not be found."
However, ReadMBC is a public class and ReadMB1 is a public static member
function of that class. It is not a namespace, and it compiles within the
same namespace as that of class Startup (shown above). The dot syntax shown
is correct for calling a member function of a class outside the class where
the call is made. What am I doing wrong?
Thanks.