Hello,
If you declare a string and you can simply use the functions as follows:-
Dim s As String
s = Left(s, length)
s = Mid(s, start, length)
s = Right(s, length)
Substring function is provided instead of using of the above.
E.g.
Dim s As String
s = s.SubString(start)
s = s.Substring(start, length)
Where start = the index of the character to start from,
and length = the number of characters to take.
Hope this helps,
Simon Jefferies
mailto:simon[nospam]@cooltoolsonline.co.uk
-- remove [nospam] to email me --
"ReidarT" <re****@eivon.no> wrote in message
news:u6**************@TK2MSFTNGP09.phx.gbl...
How do I use left, mid and right in vb.net?
regards
reidarT