|
-
Mar 2nd, 2004, 02:21 PM
#1
Thread Starter
Lively Member
Function Error -C#
Hello Everybody:
I am trying to develop a function to concate three strings . When I compile it gives me a runtime error .Can anyone tell me whats wrong?
The error is :
public string Variable(string UserName, string PhoneNumber, string RemoteYN)
{
txtUserName.Text=UserName ;
txtPhoneNumber.Text=PhoneNumber;
txtRemoteString.Text=RemoteYN ;
// Variable;
return Variable(UserName,PhoneNumber,RemoteYN);
}
private void cmdOutPut_Click(object sender, System.EventArgs e)
{ txtOutput.Text= Variable(UserName,PhoneNumber,RemoteYN);
txtOutput.Text = txtUserName.Text + " " + txtPhoneNumber.Text + " " + txtRemoteString.Text;
}
The run time error is : System.StackOverflowException' occurred in system.windows.forms.dll
Pls guide...
Rahil
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|