Results 1 to 2 of 2

Thread: Possible mistaken null statement

  1. #1

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Possible mistaken null statement

    Can anyone help me out with what this means/how to correct the warning? This line of code has a red squigly line under the semicolon and the tool tip says "Possible mistaken null statement". I've searched around but can't find an answer.
    Code:
    if (File.Exists(Application.StartupPath + "\\message.txt"));
    Thanks,
    Mike

  2. #2

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Sorry, I'm a dummy

    Take out the semicolon. What a dummy - I had "search in titles only" checked. Apologies.

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