Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / October 2006

Tip: Looking for answers? Try searching our database.

international boolean values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bostjan - 24 Oct 2006 15:00 GMT
I' m having problem converting boolean values with vb.net 2003 CBOOL
function. On english windows XP SP2 is working ok but on any other language
of windows i get this error:

Error: System.InvalidCastException: Cast from string "Neresnično" to type
'Boolean' is not valid. ---> System.FormatException: Input string was not in
a correct format.
  at Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value,
NumberFormatInfo NumberFormat)
  at Microsoft.VisualBasic.CompilerServices.BooleanType.FromString(String
Value)

any sugestions how ti fix this.
Signature

vb.net developer

Aldo Donetti [MS] - 25 Oct 2006 02:12 GMT
I believe you are not parsing "true"/"false" but the equivalent localized version?
Personally I would not rely on UI elements to determine the logic of my application.

Aldo

-- This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| Thread-Topic: international boolean values
| thread-index: Acb3dLNkpT5bbLj1R4qA8gplJeqcWA==
[quoted text clipped - 32 lines]
|
| any sugestions how ti fix this.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.