Which of the following statements formats the contents of thedblPayvariable with a dollar sign and no decimal places?
A. lblPay.Text = dblPay.ToString("C2")
B. lblPay.Text = dblPay.ToString(C0)
C. lblPay.Text = dblPay.ToCurrency("C0")
D. lblPay.Text = dblPay.ToString("C0")
Answer: D
Computer Science & Information Technology
You might also like to view...
When typing criteria for a query, it is useful to choose (from the database table) one of the indexes of the table
Indicate whether the statement is true or false
Computer Science & Information Technology
Which of the following is not a valid C++ identifier?
a. my Value b. _AAA1 c. width d. m_x
Computer Science & Information Technology