ok...mi da un errore sulla riga 38 che corrisponde a :

codice:
WEND
L'errore è : Expected statement.