User-1716253493 posted
AFAIK, in VB there is auto convert value so you can do
dim visitid as integer = txtVisitID.text
the text (string) will be converted to an integer because visitid is an integer
If you are not sure txtVisitedID will always contain a number you can use validator or tryparse like another previous post
visitid type is depend what will be done with the variable
If you want to calculate the value or pass the value for db parameter you can use numeric type
If you want to manipulate string or make a query you can use string