Home > Software engineering >  Vb based problem solving
Vb based problem solving

Time:11-03

Now I want to do a thing, a list box to display name of commodity, and then select the name of commodity and the unit price will be shown on the left side of the text box, and then there are a number of text box, type the number, it is concluded that commodity prices, and then repeat the process, finally displayed in the total price in the text box,
Now there are two difficulties:
How in the name of the selected into the text box shows two values at the same time, I will only show the selected the value
Where there is saved in the selected commodity prices,,
At the master

CodePudding user response:

 TextBox1. Text=CStr (Val1) + ", "+ CStr (Val2) 

CodePudding user response:

Use the database to do
Adodc controls, text box control

CodePudding user response:

Name of commodity as a condition into the database SQL statement to take out the unit price, commodity prices, you can save to file box, may also be stored in the database or TXT,
  • Related