How do you write a program in Visual Basic that allows the user to input 5 value
ID: 3530354 • Letter: H
Question
How do you write a program in Visual Basic that allows the user to input 5 values at a time (using a textbox) for an infinite amount of times, and then recalculate the upper and lower control limits each time the user inputs a new set of 5 values. These 5 values are displayed on a data grid view and displayed on 2 graphs (i know how to do this part). My problem is the program should pretty much erase the pervious series data points for the control limits for both charts and update the new value with the recalculated values, and I am not sure how to do this. Thank you!Explanation / Answer
If you find my this article helped u..then please rate it with 5 stars..
Yes.... if you can store these values in a array
1 : what ever you type in a text box is string..First you collect the content of text box as a String So you have split that String ..Ensure that user give a space between each inputed digit..
like normally it looks like =>string s=TextBox.getText().
So s should be in format 10 30 40 28 45
then split the whole String by each whiteSpace..
Like in java we do it like : String[] s1=s.split(" ");
This will make your input in proper format.
Now put all the content of the arrat[] generated by split using whiteSpace( " ")
now your input array of Interger is ready and you can do what ever you want with it...
Hope this decription will help you ...
For further ideas and implementation stages please refer to.
http://www.tutorialspoint.com/listtutorials/visual-basic/1
http://www.bigresource.com/VB-Input-box-input-label-box-output-help--I9CBq5aBtT.html
These two contaiin some good stuff and examples so first chek it out...
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.