I had the same question when I started with
vb.net. I was told that you can not declare a string variable with a length. The way I handled it was to create a additional variable for the length. See the example below.
DIM strFirstName as String
DIM strFirstNameLength as integer = 30
Hope this helps,
David