On Mon, 17 May 2004 18:20:47 GMT, "news.pandora.be" <> wrote:
>And how would I have te do that ?
Something Like:
NewString = ""
StringLength = Len(WordString)
For i = 1 to (StringLength/40)
NewString = NewString & Left(WordString,40) & "<br>" & VbCrLf
StringLength = StringLength - 40
WordString = Right(WordString,StringLength)
Next
Response.Write NewString
Note, this isn't tested and it only breaks the string into 40
character lines, doesn't break on words or spaces.
But there's probably a WordWrap function floating around that
someone's already written. Hang on...
Yep. Google finds your answer:
http://www.planet-source-code.com/vb...txtCodeId=6220
Jeff
>
>"Curt_C [MVP]" <software_AT_darkfalz.com> schreef in bericht
>news:...
>> where would you expect it to wrap? if it's a single, uninterrupted, string
>> of characters the browser has no idea where to break it, besides it's not
>> right to break it most likely. You'll have to build a custom string reader
>> to insert a "<br>" or linebreak (if displayed in a textbox, etc).
>>
>> --
>> Curt Christianson
>> Owner/Lead Developer, DF-Software
>> Site: http://www.Darkfalz.com
>> Blog: http://blog.Darkfalz.com
>>
>>
>> "news.pandora.be" <> wrote in message
>> news:ed7qc.113060$...
>> > I want to display a string in a table but when a word in the string is
>> > longer then 40 letters it won't wrap. Does anyone know how I can fix
>this
>> ?
>> >
>> > Thanx
>> >
>> > Wannes
>> >
>> >
>>
>>
>