icecr3amc4k3
Programmer
if i have a list box and the listbox items value is 1,2,3,4,and 5 how to add up all the numbers (items) listbox to get 15(in the text. value)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
lnTotal = 0
lnCount = THISFORM.MyListBox.ListCount()
FOR lnI = 1 TO lnCount
lnTotal = lnTotal + VAL(THISFORM.MyListBox.List(lnI))
ENDFOR
THISFORM.MyTextBox.Value = lnTotal