Cuelight
March 17th, 2008, 04:48 AM
hello
I want to call a methode from another class, but with a variable name so I can use the same code and call the methode I want .
//call other class
createProperty x = new createProperty();
//create an array wich will be filled from a method from another class
string[] a = new string[4];
//call the method "Methode"
a = x.Methode();
In the class "createProperty" i have a lot of data in arrays.
So now i want to put a methodename in a string variabele "methodeName" so i can use the code above to call all the methodes;
For example:
string methodeName;
methodeName = "here some code"
//call other class
createProperty x = new createProperty();
//create an array wich will be filled from a method from another class
string[] a = new string[4];
//call the method "Methode"
a = x.MethodeName;
How to do this? Is it possible?
Thx!
I want to call a methode from another class, but with a variable name so I can use the same code and call the methode I want .
//call other class
createProperty x = new createProperty();
//create an array wich will be filled from a method from another class
string[] a = new string[4];
//call the method "Methode"
a = x.Methode();
In the class "createProperty" i have a lot of data in arrays.
So now i want to put a methodename in a string variabele "methodeName" so i can use the code above to call all the methodes;
For example:
string methodeName;
methodeName = "here some code"
//call other class
createProperty x = new createProperty();
//create an array wich will be filled from a method from another class
string[] a = new string[4];
//call the method "Methode"
a = x.MethodeName;
How to do this? Is it possible?
Thx!