Kan i se fejlen?!
Hej eksperter!Jeg har et lille problem med en funktion i ASP.
Her er koden:
-----------------------------------------
<%
function AddItem( ImgRoot,Category,USON,Type,NameUnid,Name2,Desc,SoldOut,CommandLine,Price )
Response.Write " "
Response.Write "<img src=""./images/shop/" & ImgRoot & ".gif"" align=""right"">"
if Category = "Rare and Cruel items" or Category = "Jewels" then
Response.Write "<strong><font color=""#9E9779"">" & NameUnid & "</font></strong> <font color=""#808080"">(" & USON & " <font color=""#FFFFFF"">»</font> " & Type & " <font color=""#FFFFFF"">»</font> " & Category & ")</font><br>"
else
Response.Write "<strong><font color=""#9E9779"">" & Name2 & "</font></strong> " & NameUnid & " <font color=""#808080"">(" & USON & " <font color=""#FFFFFF"">»</font> " & Type & " <font color=""#FFFFFF"">»</font> " & Category & ")</font><br>"
end if
Response.Write "<blockquote class=""NSpace"">"
Response.Write Desc & "<br><br>Price: " & Price & " euros/USD$ <font color=""#9E9779"">//</font> "
if SoldOut = "No" then
if CommandLine <> "" then
Response.Write "<a href=""" & CommandLine & """ class=""Link02"">ADD TO CART</a>"
else
Response.Write "<font color=""#FF0000"">CAN'T BE TRADED YET!</font>"
end if
else
Response.Write "<font color=""#FF0000"">SOLD OUT!</font>"
end if
end function
%>
--- og jeg skriver (for at kalde den) ---
AddItem LCase(rs("Type")) & "/" & LCase(ItemName) & LCase(PicNum),rs("Category"),rs("USON"),rs("Type"),rs("Item_unidName"),rs("Item_Name"),rs("Item_Desc"),rs("SoldOut"),rs("CommandLine"),rs("Item_Price")
-----------------------------------------
Men den kommer med følgende fejl-meddelse:
Error Type:
Microsoft VBScript compilation (0x800A03F2)
Expected identifier
/ebojac/en/inc/libary.asp, line 2, column 40
function AddItem( ImgRoot,Category,USON,Type,NameUnid,Name2,Desc,SoldOut,CommandLine,Price )
---------------------------------------^
HJÆLP!
/> Mr.Meincke
