Interrogating string for number of characters, response.writing identical number of characters on ne

K

Ken Fine

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
 
R

Ray at

theString = "Title title title title title title"
theChar = "-"
Response.Write String(Len(theString), theChar)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top