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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile errors in web reference - reference.vb

Status
Not open for further replies.

Clint0890

Programmer
Jul 28, 2010
5
US
I have a web application that I added a web reference to Saturn Webmail. I try to build the project but I get compile errors in Reference.vb of the newly added web reference.

Example of one of the errors: Error 12 Keyword is not valid as an identifier.

Public Function sendEmail2(ByVal from As String, ByVal [to] As String, ByVal body As String, ByVal subject As String) As Boolean
Dim results() As Object = Me.Invoke("sendEmail2", New Object() {from, [to], body, subject})
Return CType(results(0),Boolean)
End Function

The keyword "from" is the issue.

Anyways I'm not sure how to handle this as this is auto generated code. Any help would be appreciated.

Thanks,
 
Well not sure if you're supposed to do this but I corrected the errors by putting brackets around the keyword.

byval [from] as string

I don't like modifying VS generated code but it seems to work. Please post your thoughts if there is a better solution.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top