Microsoft VBScript compilation error '800a0414'
Cannot use parentheses when calling a Sub
/fragor/fraga.asp, line 96
dictionaryMenu.add(myRow(0,j), myRow(1,j))
------------------------------------------^
*******
FOR j = 0 TO UBound(arrSubMenu,2)
response.write "<INPUT TYPE=""radio"" NAME=""intSubMenuID"" VALUE=""" & arrSubMenu(0,j) & """"
IF j = 0 THEN response.write " CHECKED"
response.write ">" & arrSubMenu(1,j) & vbCRLF
[b]dictionaryMenu.add(myRow(0,j), myRow(1,j))[/b]
' ## WRITE LINE BREAK IF THERE ARE MORE POSTS TO LOOP
IF NOT j = UBound(arrSubMenu,2) THEN response.write "<BR>"
NEXT
[VBScript]
Dim d ' Create a variable.
Set d = CreateObject("Scripting.Dictionary")
d.Add "a", "Athens" ' Add some keys and items.
d.Add "b", "Belgrade"
d.Add "c", "Cairo"
' ## LOOP THROUGH ALL SUBMENUS
myRow = session("listFAQsubMenu")
IF IsArray(myRow) THEN
FOR j = 0 TO UBound(myRow,2)
IF myRow(0,j) = CInt(intSubMenuID) THEN body = "Kategori:" &vbTAB & myRow(1,j) & vbCRLF & vbCRLF
NEXT
END IF
Ja, det fick bli så här...
251 ms totalt · 4 externa anrop · v20260731065814-full.a51de22e