web service error
-
Im new to this language so forgive my lack of knoledge, i am getting an error about the namespace on line 4"Expression expected" and on line 9 Description "Description is a namespace,aned so is not a valid expression" Imports System.Web.Services Imports System.Data _ Public Class FlightService Inherits System.Web.Services.WebService _ Public Function ArrivalTime(ByVal FlightNum As String) As String Dim theTime As String Select Case FlightNum Case 1001 theTime = "12.30 AM EST" Case 2002 theTime = "4:15 PM EST" Case Else theTime = "INVALID FLIGHT NUMBER" End Select Return theTime End Function
-
Im new to this language so forgive my lack of knoledge, i am getting an error about the namespace on line 4"Expression expected" and on line 9 Description "Description is a namespace,aned so is not a valid expression" Imports System.Web.Services Imports System.Data _ Public Class FlightService Inherits System.Web.Services.WebService _ Public Function ArrivalTime(ByVal FlightNum As String) As String Dim theTime As String Select Case FlightNum Case 1001 theTime = "12.30 AM EST" Case 2002 theTime = "4:15 PM EST" Case Else theTime = "INVALID FLIGHT NUMBER" End Select Return theTime End Function
You might want to try posting your code. I don't think it's complete. When you do, make sure you click the "Do not treat <'s as HTML tags between the message and signature windows. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
You might want to try posting your code. I don't think it's complete. When you do, make sure you click the "Do not treat <'s as HTML tags between the message and signature windows. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
its ok it was only the syntax of the code tht was wrong