What happened to the LEFT function in VB Express 2005?

I tried this code:

Dim a, b As String
a = "ABCDEFGHI"
b = Left(a, 3)
MsgBox(b)

And I got this error:

Error 2 'Public Property Left() As Integer' has no parameters and its return type cannot be indexed.
Any ideas why the left function wouldn't work in VB Express 2005?

Many thanks for any help.

--DB

[343 byte] By [Darkbob] at [2007-12-16]
# 1
Where did you put this code? It sounds like it is conflicting with the Left property of a Form or User Control.
You could try using an alias for the function:
Imports VB=Microsoft.VisualBasic
b = VB.Left(a,3)

ChrisDunaway at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
Or you could use substring:
b = a.substring(0,3)
ocertain at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...