Re: Interrogating string for number of characters, response.writing identical number of characters on new line
Works like a charm, so simple, so sweet...Thanks again, Ray at home.
-KF
"Ray at <%=sLocation%> [MVP]" <myFirstNameATlane34dotKOMM> wrote in message
news:OCC1ZR56DHA.2404@TK2MSFTNGP12.phx.gbl...[color=blue]
> theString = "Title title title title title title"
> theChar = "-"
> Response.Write String(Len(theString), theChar)
>
> --
>
> Ray at home
> Microsoft ASP MVP
>
>
> "Ken Fine" <kenfine@u.washington.edu> wrote in message
> news:bvs99a$j7k$1@nntp6.u.washington.edu...[color=green]
> > Suppose I have strString. I want to determine the length of strString in[/color][/color]
#[color=blue][color=green]
> > of characters, and write that number of characters on a subsequent line[/color][/color]
as[color=blue]
> a[color=green]
> > dummy character, say a hypen.
> >
> > In other words, I want to be able to dynamically create the following
> > presentation in ASCII:
> >
> > Title title title title title title
> > -------------------------
> >
> > Note that the number of hyphens equals the number of characters in[/color][/color]
"Title[color=blue][color=green]
> > title title title ...", which would be stuffed in strString.
> >
> > Any help out there?
> >
> > BTW, thanks to all the smarties in the group who have helped me out over[/color]
> the[color=green]
> > past few years. The community has helped make my career.
> >
> > -KF
> >
> >[/color]
>
>[/color] |