Jump to content

Recommended Posts

Posted
poix o vb 2005 ja tem um maneira de declarar os objectos.. tu no vb 2005 , k nao deve ser mto diferente do 2003, tens k declara o objecto, pk ja e um linguagem msm orientada objecto,

  dim txt as new textbox 
  dim txt2 as new textbox2


       if val(txt.text) < x then
             txt2.text = "isso mesmo !"
       end if 

ve la assim.... se da

e se quiser que o valor de X varie entre dois numeros

ex:

18.5 < X < 25

usando esse mesmo código que eu não percebi porque usaram, mas pronto, seria:

dim txt as new textbox 
  dim txt2 as new textbox2


       if val(txt.text) < x and val(txt.text) > y then
             txt2.text = "isso mesmo !"
       end if
Posted

nao a a dar....

If Val(Text3.Text) < 18.5 Then
           Text4.Text = "Abaixo do normal"
       End If

       If Val(Text3.Text) < 25 And Val(Text3.Text) > 18.5 Then
           Text4.Text = "Normal"
       End If

       If Val(Text3.Text) < 30 And Val(Text3.Text) > 25 Then
           Text4.Text = "Acima do Normal"
       End If

       If Val(Text3.Text) > 30 Then
           Text4.Text = "Muito acima do normal"
       End If

alguem me pode dizer o que esta mal??

fiquem...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.