I am a noobie myself, but for the second part of your questions here are a couple functions you could try:

Code:
Convert.ToInt32(text1) 

CInt(text1)
The CInt() function will round decimals, but Convert.ToInt32() will throw an exception if there is a decimal.

Hope this helps you :-)

Russ