" Cannot implicitly convert type 'bool' to 'int'"
I have retarted Tax rules that are value based. So I'm trying to do this:
public double FigureLocal(double dPrice)
{
int low = 1600, mid = 3200;
int lnPrice = System.Convert.ToInt16(dPrice);
switch (lnPrice)
{
case (lnPrice < low) : <<<<<<<<< errors here and all other case
statement/lines
{
lnLocal = lnPrice * .0225;
break;
}
case lnPrice <= mid:
{
lnLocal = ((lnPrice - 1600) * .0275) + (1600 * .0225);
break;
}
case lnPrice >= mid:
{
lnLocal = (1600 * .0275) + (1600 * .0225);
break;
}
}
return lnLocal;
}
Stephen Russell
S.R. & Associates
Memphis, TN 38115
901.246-0159
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/CSharpNET/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
