Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

[RESOLVED] how to calculate Discount between 0 and 100

$
0
0
hey

im trying to calculate a discount percent or without discount percent witch meens 0

i did this code but i know something is missing

Code:

Dim InvCost As Double
Dim invTax As Double
Dim Percent As Single

InvCost = CDbl(Txt(6).Text)
invTax = CDbl(Txt(7).Text)
Percent = CStr(Txt(8).Text)
Txt(9).Text = CLng(InvCost * invTax \ Percent)

tnx for the help

Viewing all articles
Browse latest Browse all 42220

Trending Articles



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