home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global n, citta
- set the cursor of sprite 22 to 4
- set vNome to word the mouseWord of field "alfabetocap2"
- put vNome into field "cerca"
- if vNome = "A" then
- set n to 1
- end if
- if vNome = "B" then
- set n to 1
- end if
- if vNome = "C" then
- set n to 1
- end if
- if vNome = "D" then
- set n to 1
- end if
- if vNome = "E" then
- set n to 1
- end if
- if vNome = "F" then
- set n to 1
- end if
- if vNome = "G" then
- set n to 1
- end if
- if vNome = "H" then
- set n to 1
- end if
- if vNome = "J" then
- set n to 1
- end if
- if vNome = "I" then
- set n to 1
- end if
- if vNome = "K" then
- set n to 1
- end if
- if vNome = "L" then
- set n to 1
- end if
- if vNome = "M" then
- set n to 1
- end if
- if vNome = "N" then
- set n to 2
- end if
- if vNome = "O" then
- set n to 2
- end if
- if vNome = "P" then
- set n to 2
- end if
- if vNome = "Q" then
- set n to 2
- end if
- if vNome = "R" then
- set n to 2
- end if
- if vNome = "S" then
- set n to 2
- end if
- if vNome = "T" then
- set n to 2
- end if
- if vNome = "U" then
- set n to 2
- end if
- if vNome = "V" then
- set n to 2
- end if
- if vNome = "W" then
- set n to 2
- end if
- if vNome = "Z" then
- set n to 2
- end if
- put field ("cap" & citta & n) into field "cap"
- put field ("nome" & citta & n) into field "nome"
- put field ("tipo" & citta & n) into field "tipo"
- put field ("nota" & citta & n) into field "nota"
- put field ("nota1" & citta & n) into field "nota1"
- set nLines to the lineCount of member "NOME"
- repeat with y = 1 to nLines
- if chars(line y of field "NOME", 1, 1) = vNome then
- exit repeat
- next repeat
- end if
- nothing()
- end repeat
- set the locV of sprite 5 to 371
- set the locV of sprite 7 to 364
- set the locV of sprite 8 to 364
- set the locV of sprite 9 to 364
- set the locV of sprite 10 to 364
- set the locV of sprite 11 to 364
- endscroll()
- initScroll(3, 4, 5, 6, 7, 11)
- ScrollDown((y * 17) - 17)
- delay(60)
- set the cursor of sprite 22 to [the number of member "dito", the number of member "ditonero"]
- end
-