Compiler Error Message: CS1502: The best overloaded method match for 'BPOCompSalesListings.SaveSale1(ref string)' has some invalid arguments
Source Error:
| Line 117:string Source; Line 118: Line 119:if (!SaveSale1(Result)) Line 120:{ Line 121:Source = "Save Sale 1: "; |
Source File: d:\Websites\TitaniumValuations\BPOCompSalesListings.aspx.cs Line: 119
here is a code snippet
string Result;
string Source;
if (!SaveSale1(Result))
{
Source = "Save Sale 1: ";
DisplayError(Source, Result);
}
Scott LyslePosted Apr 4, 2007, 11:19 PM
string result = string.empty;
I am not sure since I can't see all of the code (like SaveSale1) so I don't know what you are doing with the string but you might need to into the use of out parameters. You might take a look at this article:
http://www.c-sharpcorner.com/UploadFile/mahesh/out_and_ref11112005002102AM/out_and_ref.aspx
Source Error:
Source File: d:\Websites\TitaniumValuations\BPOCompSalesListings.aspx.cs Line: 119
here is a code snippet
string Result;
string Source;
if (!SaveSale1(Result))
{
Source = "Save Sale 1: ";
DisplayError(Source, Result);
}