Salve a tutti,
tramite una ListView ho creato una semplice lista della spesa. Inserendo invece dei soli caratteri numerici nella ListView; sarebbe possibile poter effettuare la media?
Saluti
Nicola
Don't understand, what do you mean by this ?
@TIMAI2 vorrei inserire in una ListView tutti i km effettivi fatti con ogni pieno di benzina; e poter visualizzare magari in una label, la media complessiva.
Pieno 1 - 317 km
Pieno 2 - 192.30 km
Pieno 3 - 198.30 km
Media: 235.87
If only numbers are in the list (see first post)
Scrivere in inglese no ? difficile tradurre media..
I would like to insert in a ListView all the actual km made with each tank of petrol; and being able to view the overall average in a label.
Full 1 - 317 km
Full 2 - 192.30 km
Full 3 - 198.30 km
Average: 235.87
You have to apply the procedures to the list on which the ListView.is based
This method works, but it is not programmatically elegant, since it uses the Label.Text as a variable.
I apologize for leaving it out in my prior post.
Here is is, with its use in another sample app ...

Sum.aia (2.7 KB)
@Juan_Antonio non fa niente se non è elegante a livello di codice; la cosa importante è il risultato finale. Grazie mille e buona serata
Saluti
Nicola
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.