The String data type in vb.net can store up to 2 GBs and we can just create a variable like this:
dim str as string
But now I would like to make this str to be fixed. I got the syntax like this:
<vbFixedstring(10)> dim str as string
str = "This is for testing."
By writing like this I can still assign value more than 10 characters and can call it back as well without losing any character.
What is the problem? and do you have any syntax?