Jump to content
PLC Forum


Visual Basic TextBox

Recommended Posts


Come faccio a dichiarare una Textbox as decimal in modo tale da inserirla in un calcolo?


Dim totale as decimal

totale = Textbox1.text + textbox.text 

Link to post
Share on other sites

Adelino Rossi

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.

Link to post
Share on other sites

puoi scrivere anche totale= val(textbox1.text+ textbox1.text)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...