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? 

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

B Dim objCulture As NumberFormatInfo = _
New CultureInfo("zh-HK").NumberFormat
Return NumberToPrint.ToString("-{0}", objCulture) 

C Dim objCulture As NumberFormatInfo = _
New CultureInfo("zh-HK").NumberFormat
Return NumberToPrint.ToString("()", objCulture) 

D Dim objCulture As NumberFormatInfo = _
New CultureInfo("zh-HK").NumberFormat
objCulture.CurrencyNegativePattern = 1
Return NumberToPrint.ToString("C", objCulture) 

+ Answer
+ Report
Total Preview: 856

Copyright © 2024. Powered by Intellect Software Ltd