You can use a StringBuilder object instead of a String.
Here's a nice explanation:
Dim x as New StringBuilder(50,50) 'Creates a string builder with 50
characters and a maximum of 50 characters
x.Append("Hello") ' Appends data to x
Telmo Sampaio
"Sehboo" <ma*********@hotmail.com> wrote in message
news:7b**************************@posting.google.c om...
Hi,
Is there any easy way to limit the size of the string?
I have
Private msDescription As String
I want to limit the msDescription to 50 instead of unlimitted.
I wish I could do something like
Private msDescription As String(50)
How to achive this?
Thanks