Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 20th, 2004, 12:27 AM
Authorized User
 
Join Date: Feb 2004
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding in textboxes

Hi
Where I live we use , as decimal seperator and . as digit grouping symbol.So when I in my application write some like.

Text2 = Val(Text2) + (550 / 100)

things start to go wrong.
The first time I write to the textbox it shows 5,5 but the next time it is called it will show 10,5. I have tried to change the regional settings and then it works.
Is their a way to get around this without changing my regional settings?
Cheers
Karsten

 
Old July 20th, 2004, 12:20 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Val recognizes only the . as decimal separator. Use CDbl instead.

Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
Format textboxes dhoward Javascript How-To 1 December 29th, 2006 01:37 AM
Two TextBoxes hunzian78@yahoo.com ASP.NET 1.0 and 1.1 Basics 5 April 1st, 2006 06:32 AM
textboxes and additions toiletgraffiti C# 4 January 23rd, 2006 11:50 AM
query AND/OR for textboxes gilgalbiblewheel Classic ASP Databases 1 February 4th, 2005 09:10 PM
Printing Textboxes circuitzero Beginning VB 6 2 December 2nd, 2004 12:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.