I have a problem with "left"syntax
when i operate it in console application, it works
but when i operate it in windows application, the left syntax is error...
this is my code, can someone check my code please
' get and validate order no
Dim strOrderNo As String = _ ValidateOrderNumber(txtOrderNumber.Text)
If strOrderNo = "" Then
MessageBox.Show("Error: Invalid Order Number")
Private Function ValidateOrderNumber(ByRef strOrderNo As String) _ As String
strOrderNo = strOrderNo.ToUpper
If Left(strOrderNo, 2) <> "SO" Then
' returns an empty string to denote error
' return valid order no
the description say that 'Public Property Left() As Integer' has no parameters and its return type cannot be indexed.
can someone help me please..............