Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21848

type mismatch regarding currency format of a value 0

$
0
0
i have a cashregister where i make the totals of the sales and profit

when i load the project i get error type mismatch
now i understand that i cannot format the currency of a value that is 0 but that value of a 0 is the no discount for the customer
if i don't want to give him a discount then it 0.
is there a way to bypass this error and still see the 0 value discount?
this is the code that i put to do the calculation and gives me the error Type Mismatch
Code:

  LblProfit.Caption = CCur(FrmCashRegister.LblCost.Caption - (FrmInventory.LblTotal.Caption))

Viewing all articles
Browse latest Browse all 21848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>