hallo,
I have a function which takes 2 values as input and i want to return that 2 values, so how should write the return statement to return 2 values of String array. I also i should retrieve these values in a button click event. here is my code.
sorry iam newbie to c# i dont know this simple task itself. any idea ?..
Thank you.
Dinesh.
I have a function which takes 2 values as input and i want to return that 2 values, so how should write the return statement to return 2 values of String array. I also i should retrieve these values in a button click event. here is my code.
Code:
public String newop(string userna,string pwd)
{
cwe_pro.GetFolderContentRequestType preq = new cwe_pro.GetFolderContentRequestType();
cwe_pro.GetFolderContentReplyType pres = new cwe_pro.GetFolderContentReplyType();
try
{
preq.depth = 0;
preq.folderId = docid;
ws.Url = "http://www.cwe-projects.eu/bscw/bscw.cgi";
ws.Credentials = new System.Net.NetworkCredential(userna, pwd);
pres = ws.GetFolderContent(preq);
XmlDocument doc = new XmlDocument();
doc.LoadXml(pres.folderContent);
XmlNodeList ni = doc.GetElementsByTagName("dcterms:modified");
st = ni[0].InnerText;
if (st.Equals(lmod))
{
MessageBox.Show("No modification In the File");
textBox3.Visible = false;
groupBox3.Visible = true;
}
else
{
MessageBox.Show("Last modified by another user :" + st);
textBox3.Visible = false;
groupBox3.Visible = true;
}
}
catch (Exception e1)
{
MessageBox.Show(e1.ToString());
return;
}
}
this is my function and how should write the return statement that return a array of those two values username and pwd. i have retreive these 2 values usrname and pwd in button click event.
private void button3_Click(object sender, EventArgs e)
{
}
Thank you.
Dinesh.
Comment