From: Paul Clement on 2 Feb 2010 13:15 On Mon, 01 Feb 2010 20:08:54 +0000, MM <kylix_is(a)yahoo.co.uk> wrote: � On Mon, 01 Feb 2010 07:54:50 -0600, Paul Clement � <UseAdddressAtEndofMessage(a)swspectrum.com> wrote: � � >On Sat, 30 Jan 2010 10:31:01 +0000, MM <kylix_is(a)yahoo.co.uk> wrote: � > � >� I was looking for a masked textbox for hex input and in the MSDN blurb � >� on How to Create a Numeric Text Box (.Net, naturally, this being � >� Microsoft) my eyes hit upon the following: � >� � >� Dim numberFormatInfo As NumberFormatInfo = � >� System.Globalization.CultureInfo.CurrentCulture.NumberFormat � >� � >� I mean, you REALLY have to allow that to sink in... � >� System.... � >� ....Globalization.... � >� ....CultureInfo.... � >� � >� ....CurrentCulture.... � >� � >� ....NumberFormat � >� � >� Yeuch! � >� � >� MM � > � >So are you saying that you would rather write an extra five to ten lines of not as readable Windows � >API code in Classic Visual Basic in order to retrieve this information? � � Why would I want to retrieve such information? � � I reckon in VB6 Dim i As Integer is usually a pretty good start. � � MM I don't know, but it's there if you need regional settings information. Or, in your case it's a call to GetLocaleInfo. Paul ~~~~ Microsoft MVP (Visual Basic)
First
|
Prev
|
Pages: 1 2 3 4 5 6 Prev: Vb 6.0 MSDN Setup file download. Next: ADO: Help build this query in MS Access |