473,326 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Hi need help in debugging

1
Hi i am new to VB and am writing a small prog to calculate
some values in a formulae..

for the input i have used a text box so that user inputs
the number
and based on that number is stored as a constant to be used in the formule.
and on clicking a button the out put is shown in another
text box.. i am facing a peculiar problem.. when ever the user types in a number he does not receive the correct
out put unless he enters the input as a decimal

for instance if he enters input as 20 the out put val is wrong and if he enters 20.0 the outputvalue is correct...
i have declared all variables as double where the input and other formulea constants are stored,
pls help..to rectify this

Thanks
nar
Nov 20 '06 #1
2 1010
sivadhas2006
142 100+
Hi,

Can you post your code to find the problem?

Regards,
M.Sivadhas.
Nov 20 '06 #2
willakawill
1,646 1GB
Hi i am new to VB and am writing a small prog to calculate
some values in a formulae..

for the input i have used a text box so that user inputs
the number
and based on that number is stored as a constant to be used in the formule.
and on clicking a button the out put is shown in another
text box.. i am facing a peculiar problem.. when ever the user types in a number he does not receive the correct
out put unless he enters the input as a decimal

for instance if he enters input as 20 the out put val is wrong and if he enters 20.0 the outputvalue is correct...
i have declared all variables as double where the input and other formulea constants are stored,
pls help..to rectify this

Thanks
nar
Hi. Shooting in the dark without your code here :)
When you take the value from the textbox and assign it to a variable make sure to cast it as a double;
Expand|Select|Wrap|Line Numbers
  1. MyDoubleVariable = CDbl(TextBox1.Text)
  2.  
In the absence of you code, this is the best I can do
Nov 20 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: lawrence | last post by:
I've been bad about documentation so far but I'm going to try to be better. I've mostly worked alone so I'm the only one, so far, who's suffered from my bad habits. But I'd like other programmers...
5
by: Jerry Polyak | last post by:
Can someone give me a pointer, please. I am getting the following errors: Notice: Undefined index: sender_name in c:\program files\apache group\apache\htdocs\allinone_form.php on line 12 ...
10
by: Beach Potato | last post by:
Dear Y'all: I'm about to start porting a big old project written in anscient version of Delphi to something more stable, robust, supportable and maybe even portable. Since I haven't seriously...
0
by: Eric Clapton | last post by:
I have created a vb.net project in local drive and the program contains crystal report 9.0 through ODBC and link to SQL server. I can run this no problem on WinXP. But when I move the project to a...
5
by: Saurabh Aggrawal | last post by:
Hi, I am in the process of debugging a 32 bit driver in user mode. I am debugging a dll( printer UI) which internally uses the GDI32.dll. I am using the Windbg for debugging. Windbg is loading the...
1
by: Dhanak | last post by:
I have around 1000 aspx files that contains standard lines intended for debugging purpose.Now before we put these to production we need to remove these lines from all files. Instead of doing it...
2
by: Andy Fish | last post by:
Hi, Using VS.NET 2003, when I use 'F5' to start debugging my web app, it obviously attaches the IDE to IIS for server debugging. However, it also seems to put IE into some kind of debugging mode...
0
by: joef | last post by:
I'm running VS.net on my PC (W2K) connected to a remote IIS server (W2K) SP4 that is not a domain controller. I've got the ASPNET and IWAM accounts in the "Impersonate a client after...
14
by: bcap | last post by:
Hello, I really would apprciate help! =) What I want to do is be able to change the status of mulitple records using a drop down and a checkbox. I have a drop down called "ChangeStatus"...
1
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.