Come mai così non mi funziona?
codice:
Dim controllo(3)
controllo = Array("PIPPO","PLUTO","PAPERINO")
SALVARE = "SI"
for x = 0 to 2
if (instr(Cnome,controllo[x]) > 0)
SALVARE = "NO"
then
next
for x = 0 to 2
if instr(Ccitta,controllo[x]) > 0
SALVARE = "NO"
then
next
for x = 0 to 2
if instr(Cmessaggio,controllo[x]) > 0
SALVARE = "NO"
then
next
Mi da questo errore:
Microsoft VBScript compilation error '800a03ee'
Expected ')'
Anche modificando mi da errore:
codice:
for x = 0 to 2
confronto = controllo[x]
if (instr(Cnome,) > 0)
SALVARE = "NO"
then
next
Dove sto sbagliando?