F4RR3LL Report Share Posted February 14, 2016 Come faccio a dichiarare una Textbox as decimal in modo tale da inserirla in un calcolo? Esempio Dim totale as decimal totale = Textbox1.text + textbox.text Quote Link to post Share on other sites
Adelino Rossi Report Share Posted February 14, 2016 trasforma prima la textbox in valore e poi calcola. a memoria mi sembra che: dim a,b,c as variant a = value(textbox1) b = value(textbox2) c = a + b spero di essermi ricordato bene. Quote Link to post Share on other sites
F4RR3LL Author Report Share Posted February 14, 2016 Grazie mille per la risposta, funziona Quote Link to post Share on other sites
roberto8303 Report Share Posted February 14, 2016 puoi scrivere anche totale= val(textbox1.text+ textbox1.text) Quote Link to post Share on other sites
F4RR3LL Author Report Share Posted February 14, 2016 Grazie Roberto Quote Link to post Share on other sites