Suppose I have strString. I want to determine the length of strString in #
of characters, and write that number of characters on a subsequent line as a
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 "Title
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 the
past few years. The community has helped make my career.

-KF

Re: Interrogating string for number of characters, response.writing identical number of characters on new line by Ray

Ray
Wed Feb 04 21:03:02 CST 2004

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...
> Suppose I have strString. I want to determine the length of strString in #
> of characters, and write that number of characters on a subsequent line as
a
> 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 "Title
> 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
the
> past few years. The community has helped make my career.
>
> -KF
>
>



Re: Interrogating string for number of characters, response.writing identical number of characters on new line by Ken

Ken
Wed Feb 04 21:40:53 CST 2004

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...
> 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...
> > Suppose I have strString. I want to determine the length of strString in
#
> > of characters, and write that number of characters on a subsequent line
as
> a
> > 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
"Title
> > 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
> the
> > past few years. The community has helped make my career.
> >
> > -KF
> >
> >
>
>