codice:
<%
'CON QUESTA FUNZIONE VENGONO SUDDVISE LE PAROLE ALL INTERNO DI
'UNA STRINGA PASSATA CHE SUPERANO UN LIMITE MAX DI CARATTERI
Function limitaCaratteri(frase, lunghMax)
estrattoBreve = ""
limitaCaratteri = ""
lunParola = 0
lunFrase = LEN(frase)
contatore = 1
while lunFrase > 0
estrattoBreve = MID(frase,contatore,1)
if estrattoBreve <> " "
lunParola = lunParola + 1
else
lunParola = 0
end if
if lunParola > lunghMax then
lunParola = 0
limitaCaratteri = limitaCaratteri & "
" & estrattoBreve else
limitaCaratteri = limitaCaratteri & estrattoBreve
end if
lunFrase = lunFrase - 1
contatore = contatore + 1
wend
End Function
%>
Si è leggermente da sistemare... il mio era solo un esempio... qusta è un'altra versione che serve per mandare a capo ogni parola all'interno di una frase... insomma vuole essere solo uno spunto... non una soluzione..