[Solved] How to return a string from a method?
Your return type is void, not string. Change it to: private string SQLSelection() A void is a “returnless” action that is performed upon something and does not “return” back the values of the return statement. If you try to return a value, you get a compiler error as you are experiencing. In addition, you keep … Read more