English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hi , i have there 3 list boxes which are quantity , price total , i want to do the calculation so tatal will be shown in the total list box , by muptliying qatinty with price , can any one help please

thank you

2007-01-16 00:27:54 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

Assuming the first item in quantity goes with the first price and becomes the first total and so on, then

Dim x as integer
For x = 0 to (lstQuantity.Count - 1)
lstTotal.Item(x) = lstQuantity.Item(x) * lstPrice.Item(x)
NEXT

2007-01-16 03:20:08 · answer #1 · answered by rod 6 · 0 0

i've got confidence in the adventure that your making a connection to the database and that's a static table then you definately can set the recordset properties to the listbox administration. If that's a custom checklist then you definately ought to write down a sq. fact and then set the recordset to the achieved sq. fact. that should help.

2016-12-12 12:35:07 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers