Question:You are developing an application for a client residing in Hong Kong. You need to display
negative currency values by using a minus sign. Which code segment should you use? -(VB.NET)
 

A Dim culture As NumberFormatInfo = New CultureInfo("zh-HK").NumberFormat
culture.NumberNegativePattern = 1
Return numberToPrint.ToString("C", culture) 

B Dim culture As NumberFormatInfo = New CultureInfo("zh-HK").NumberFormat
culture.CurrencyNegativePattern = 1
Return numberToPrint.ToString("C", culture) 

C Dim culture As New CultureInfo("zh-HK")
Return numberToPrint.ToString("()", culture) 

D Dim culture As New CultureInfo("zh-HK")
Return numberToPrint.ToString("C", culture) 

+ Answer
+ Report
Total Preview: 1136

Copyright © 2024. Powered by Intellect Software Ltd