Jag vill ta reda på vilket av värderna jag hämtar från textfiler som är störst och tilldela det till ZZ för att kunna räkna med det senare i koden.
Har försökt med IF-satser men det bara tilldelar ZZ 0 till sista IF-satsen
Sökt här på WF och försökt med en FOR NEXT men inte fått till det
Dim Z, a, b, c, d, e, f, g, h, aa, bb, cc, dd, ee, ff, gg, hh
Set Z = CreateObject("Scripting.FileSystemObject")
Set a = Z.OpenTextFile(Server.MapPath("raknare_default.txt"))
Set b = Z.OpenTextFile(Server.MapPath("raknare_kontakta_oss.txt"))
Set c = Z.OpenTextFile(Server.MapPath("raknare_bli_medlem.txt"))
Set d = Z.OpenTextFile(Server.MapPath("raknare_1.txt"))
Set e = Z.OpenTextFile(Server.MapPath("raknare_2.txt"))
Set f = Z.OpenTextFile(Server.MapPath("raknare_3.txt"))
Set g = Z.OpenTextFile(Server.MapPath("raknare_4.txt"))
Set h = Z.OpenTextFile(Server.MapPath("raknare_raknare.txt"))
aa = a.ReadLine
bb = b.ReadLine
cc = c.ReadLine
dd = d.ReadLine
ee = e.ReadLine
ff = f.ReadLine
gg = g.ReadLine
hh = h.ReadLine
Dim ZZ
ZZ = 0
IF aa > ZZ THEN
ZZ = aa
ELSE
ZZ = ZZ
END IF
IF bb > ZZ THEN
ZZ = bb
ELSE
ZZ = ZZ
END IF
intMax=0
for i=1 to 5
intCur=CInt(request("tal" & i))
if intCur>intMax then intMax=intCur
next