CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 19

Threaded View

  1. #10
    Join Date
    Mar 2012
    Posts
    14

    Re: Need Help with Parser C#

    Okay everything's finally starting to make a lot of sense and it seems to be a lot cleaner now.
    I now have:
    Code:
    private void btnTrans_Click(object sender, EventArgs e)
            {
                string outputString = null;
                if (d.TryGetValue(inputBx.Text, out outputString))
                {
                    outputBx.Text = outputString; //Found the string
                }
                else
                {
                    //Haven't found it - do something else
                }
                
            }
    As well as the changes I have made from your previous post.
    However, in your code, it doesn't allow me to set the button to load a file for the open dialog since my original code was in the click handler for load dictionary. There for I'm not able to open my CSV file.

    I really am trying to figure this out by myself, it's just i've sat here for days trying to do it and I feel right now that I'm so close to getting it right and understanding the code

    EDIT: IT WORKS!!! I can't thank you enough pal, you've really helped me understand how to do this. So happy that it words Peter_B IS THE DUDE!!
    Last edited by dahrull; March 18th, 2012 at 12:48 PM.

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
  •  





Click Here to Expand Forum to Full Width

Featured