But I have to cast it to make it work. I would like to make it all work based on the string variable myTable. Should I trying using an interface or something to cast into?
Thanks,
Kevin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to load the manager using the Class.ForName method. It works if I put:
String myTable = "TblEmpsManager";
(TblEmpsManager)((Class.forName(myTable)).newInstance()).getInstance();
But I have to cast it to make it work. I would like to make it all work based on the string variable myTable. Should I trying using an interface or something to cast into?
Thanks,
Kevin