Jump to content
PLC Forum


Sign in to follow this  
F4RR3LL

Visual Basic TextBox

Recommended Posts

F4RR3LL

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 
 

Share this post


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.

Share this post


Link to post
Share on other sites
roberto8303

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

Share this post


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.

Guest
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.

Sign in to follow this  

×
×
  • Create New...