Hej!
Ursäkta, jag är allmänt trög det vet jag, men jag förstår inte frågan.
Vad vill du göra?
mvh Jörgen :)
------------------
Varför bråka när man kan kramas?
7 svar · 226 visningar · startad av Rinaldo
Function Shorter(strText)
arrText = Split(strText, " ")
For counter = 0 To uBound(arrText)
If Len(arrText(counter)) > 50 then
If newText <> "" then
newText = newText & " " & Left(arrText(counter), 50) & " " & Right(arrText(counter), Len(arrText(counter))-50)
Else
newText = Left(arrText(counter), 50) & " " & Right(arrText(counter), Len(arrText(counter))-50)
End If
Else
If newText <> "" then
newText = newText & " " & arrText(counter)
Else
newText = arrText(counter)
End If
End If
Next
Shorter = newText
End Function
av spin till Emissions WF kod. vill få den i samma tag som som allt ligger i...
Hej!
Ursäkta, jag är allmänt trög det vet jag, men jag förstår inte frågan.
Vad vill du göra?
mvh Jörgen :)
------------------
Varför bråka när man kan kramas?
Jag vill göra så att WF koden även förkortar ord som är längre än 50 tecken och då lägga till dem i : wfParser.Parse.
Är det verkligen inte någon som kan hjälpa mig med detta ?
------------------
zzzzzzzzzzzzzzzzzzzzzzzz...
Om du vill lägga in din funktion som en del av parsern så är det bara att lägga in den i parser-classen och lägga in ett anrop till den i slutet av Parse-metoden.
------------------
/emission
If you see someone without a smiley, give them your colon.
I parser classen...?
såhär?
Function PareseLength(strText)
arrText = Split(strText, " ")
For counter = 0 To uBound(arrText)
If Len(arrText(counter)) > 50 then
If newText <> "" then
newText = newText & " " & Left(arrText(counter), 50) & " " & Right(arrText(counter), Len(arrText(counter))-50)
Else
newText = Left(arrText(counter), 50) & " " & Right(arrText(counter), Len(arrText(counter))-50)
End If
Else
If newText <> "" then
newText = newText & " " & arrText(counter)
Else
newText = arrText(counter)
End If
End If
Next
ParseLengt = newText
End Function
Hur och var ska jag anropa den?
------------------
zzzzzzzzzzzzzzzzzzzzzzzz...
Läs min kod, så hittar du både parser-classen (EMarkupParser) och dess Parse-metod.