|
-
March 29th, 2012, 06:13 AM
#16
Re: Need Help with Parser C#
Long time no post!
Thanks for all the help last time, Now I'm just wondering how I'd go about changing this code:
Code:
private void btnTrans_Click(object sender, EventArgs e)
{
string outputString = null;
if (d.TryGetValue(inputBx.Text, out outputString))
{
;
outputBx.Text = outputString;
}
else //Did not find the string
{
outputBx.Text = "Unknown ";
}
}
so that instead of just typing in the one word I could type in something like, "I can't believe it was on" and it would output "I can't believe it was off" On and off being split word 1 and 2.
So I'm not sure how i'd go about writing code so it searches if it contains the string and prints the full thing with the changed word.
Any help guys?
Tags for this Thread
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
|