Search:

Type: Posts; User: Norm

Search: Search took 0.20 seconds.

  1. Re: If no search results found..display a message....but how? is the question.

    What happens when you compile and execute the code? Are there errors? Did it work as desired?
  2. Re: If no search results found..display a message....but how? is the question.

    What kind of variable are you setting?
    Give it a value so that when the loop exits you will know if a match was found.
  3. Re: If no search results found..display a message....but how? is the question.

    That looks like the message is displayed inside the loop. It will display a message for every item that does not match.

    Did you see this pseudo code in my last post?
    Define the boolean variable...
  4. Re: If no search results found..display a message....but how? is the question.

    That should do it. What have you tried?
    Define the variable before the search loop
    set it inside the loop if any matches found
    after the loop, test it and print the message
Results 1 to 4 of 4