Help!I'm stuck!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi guys..
I'm getting an error saying that
--->C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Calculate_rates.cs(35): 'float'
does not contain a definition for 'Checked'

wat's does it mean? here's r my code..
if (Discount.Checked==true)
{
call_cost = (call_cost + (((start_time - end_time)/block_size) *
rate_per_block))*Discount;
}
and I declared my Discount as float--> float Discount;

Can u tell me how to correct them?
Thanks..
 
It means that the Type "float" does not have a member named "Checked".

What are you trying to do with the Discount.Checked ?

Also, if Discount is a currency value, you should NOT use float. float Type
is for floating point numbers, not for money or currecncy. Use decimal
instead...
 
Build selectively builds only those parts of a project or solution
that have changed since the last build, depending on what you select.

Rebuilds everything, the choice often makes little
difference unless you have a large solution or project.

Rebuilding a large project can cost time !
 
float does not have a member called 'Checked.'

I think your getting mixed up with checkbox controls or somthing maybe
 
Back
Top