Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

converting sql from VB 6 to .Net 1

Status
Not open for further replies.

ribbons

Technical User
Apr 26, 2007
113
US
I'm trying to convert some SQL from VB 6.0 to .Net. Can anyone tell me why the following is not correct???

Code:
sWhere = str.Substring(sWhere, str.Length(sWhere) - 4)
I'm converting FROM:
Code:
 sWhere = Left(sWhere, Len(sWhere) - 4)

The error message I get is
Code:
 Public ReadOnly Property Length() As Integer' has no parameters and its return type cannot be indexed.


 
Code:
sWhere = str.Substring(0, str.Length(sWhere) - 4)

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Thanks!

But . . . I'm still getting the same error.

Code:
'Public ReadOnly Property Length() As Integer' has no parameters and its return type cannot be indexed.
 
oops..
Code:
sWhere = str.Substring(0, str.Length - 4)

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top