Getting the value returned from a method within a class library in a variable within a click event
Posted on 2006-10-31
I have a method within a class library in this format in a project.
public system.string evaluate(string key, string value)
I call this method in my windows C# form in this format
**Windows form C# application
private void button1_Click(object sender, System.EventArgs e)
string test = txted.Text;
string testvalue = txtvalue.Text;
ClassLibProject cldp = new classLibProject
returnvalue = gd.encrypt(test,testvalue);
I am unable to get any value in the returnvalue variable and all
I get is "Error:Identifier 'returnvalue' out of scope.
The method evaluate works very well and when I step through it,
it returns exactly what I want to see but by the time it gets
to the returnvalue value, I am not able to get the value.