Post by CrySet on Sept 16, 2009 11:54:42 GMT -8
Ok so iv started learning VB.NET for college *sigh*
Anyway, there are many different things I need to learn, which is all well and good, but I don't have a website to learn from so I can study ahead of everyone else, because they are all currently learning the basic basic basics. (what variables are etc.)
So 1, can you recommend any good VB.NET sites?
Second thing, Iv come across a bit of an annoyance, because the work in class is using user-input. And is basically working with numbers and currency. Anyway, because they only have VB.NET 2005 at college, iv had to come up with this function to work out if the number is an integer/single (0.00)
That currently works, but, it is annoying to have to keep calling the function and changing things around, also, if I want to change/add/remove something. I dont want 20 different functions
Is there a simpler way to work out whether a variable is an integer/single? If not, is there anything I can do to that to make it more reliable?
Thanks
Anyway, there are many different things I need to learn, which is all well and good, but I don't have a website to learn from so I can study ahead of everyone else, because they are all currently learning the basic basic basics. (what variables are etc.)
So 1, can you recommend any good VB.NET sites?
Second thing, Iv come across a bit of an annoyance, because the work in class is using user-input. And is basically working with numbers and currency. Anyway, because they only have VB.NET 2005 at college, iv had to come up with this function to work out if the number is an integer/single (0.00)
Public Function check_int_dec()
If (valid = True) Then
For v = 1 To Len(intcheck)
If (Asc(Mid(intcheck, v, 1)) < 48) Or (Asc(Mid(intcheck, v, 1)) > 57) Then
valid = False
If Not (v = Len(intcheck)) Then
If (Asc(Mid(intcheck, v, 1)) = 46) Then
valid = True
End If
End If
End If
Next v
End If
End Function
That currently works, but, it is annoying to have to keep calling the function and changing things around, also, if I want to change/add/remove something. I dont want 20 different functions
Is there a simpler way to work out whether a variable is an integer/single? If not, is there anything I can do to that to make it more reliable?
Thanks