09. marts 2005 - 22:50Der er
2 kommentarer og 1 løsning
Problem med kode
Hej
KODEN: <% dim fs,fo,x set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("C:\W3Sites\football\www\Galleri\Kampe\" & request.querystring("con"))
for each x in fo.files if x.Name = "info.txt" then next else Response.write("<img src='" & sti & "\" & x.Name & "' width='470' height='470'><br><br>") next end if
set fo=nothing set fs=nothing %>
FEJLEN Microsoft VBScript compilation error '800a041f'
for each x in fo.files if x.Name = "info.txt" then next else Response.write("<img src='" & sti & "\" & x.Name & "' width='470' height='470'><br><br>") next end if
Skal srkives på denne måde, ken et "next" til en for linje:
for each x in fo.files if x.Name = "info.txt" then else Response.write("<img src='" & sti & "\" & x.Name & "' width='470' height='470'><br><br>") end if next
for each x in fo.files if x.Name <> "info.txt" then Response.write("<img src='" & sti & "\" & x.Name & "' width='470' height='470'><br><br>") next
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.