ryanbutler
09-29-2007, 12:40 PM
Hi,
How do you check a certain number of characters in VB.NET? What I mean is say you create an instance of a class Boat where an attribute stateRegistrationNo can only have 10 characters, how do you check for that in an accessor method?
Do you declare a variable:
Dim aString as String={"10"}
Or would you create a string array and loop through checking the Length element?
Thanks for any tips,
How do you check a certain number of characters in VB.NET? What I mean is say you create an instance of a class Boat where an attribute stateRegistrationNo can only have 10 characters, how do you check for that in an accessor method?
Do you declare a variable:
Dim aString as String={"10"}
Or would you create a string array and loop through checking the Length element?
Thanks for any tips,