Computing.Net > Forums > Programming > VB 6.0 Calculation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB 6.0 Calculation

Reply to Message Icon

Name: Kevin
Date: January 3, 2003 at 05:30:33 Pacific
OS: 2000
CPU/Ram: enough
Comment:

I am having some trouble with code for calculating two textboxes and placing the result in another textbox. I currently have three textboxes. I place numbers in the first two textboxes and when I GetFocus on the third box, it places the value of the first two text boxes. This was coded easily. But, let say that I needed to go back and make a change in the first text box, how can I get an automatic calculation of the changed value and place it in the third text box without having to get focus again. You probably see that this can create problems especially if you have multiple forms and controls that are linked together. I hope this makes since. Please help. Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Chad
Date: January 3, 2003 at 08:00:58 Pacific
Reply:

In textbox one and two's text_change functiion, just call the textbox3's getfocus routine. Be sure to check to see if the value has changed to a non number string and do not call in this case, but give an error.



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB 6.0 Calculation

I need help about vb 6.0 www.computing.net/answers/programming/i-need-help-about-vb-60/5404.html

Declaring Variables in VB 6.0 www.computing.net/answers/programming/declaring-variables-in-vb-60/9957.html

connecting to unix using vb 6.0 www.computing.net/answers/programming/connecting-to-unix-using-vb-60/7085.html