Monday, February 16, 2015

VB.net Formatting Data for Display

ตัวอย่าง
displayLabel.Text = numberInteger.ToString()
' Display as currency.
extendedPriceLabel.Text = (quantityInteger * priceDecimal).ToString("C")
' Display as numeric.
discountLabel.Text = discountDecimal.ToString("N")



No comments:

Post a Comment