ActiveAns is a textbox. It may contain Nothing or an integer. If it contains a number I need to convert that to (n) as below. I can't seem to do this without runtime errors that say it cannot convert it.
How do I test ActiveAns and then convert the contents of ActiveAns to n ?
If IsNumeric(ActiveAns.Text) And ActiveAns.Text > 0 Then
Dim n As Integer = Int(ActiveAns.Text)
blah blah blah