Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

help me....i don't know how to use LPAD in ASP

Posted on 2002-04-04
2
1,071 Views
Last Modified: 2008-02-01
Does anybody know what is the command use in ASP that is similar like LPAD in ORACLE

for e.g in oracle
SELECT LPAD('Page 1',15,'*.') "LPAD example"
          FROM DUAL


but how to use this LPAD command in ASP

0
Comment
Question by:fairuznisha
2 Comments
 
LVL 39

Accepted Solution

by:
appari earned 50 total points
ID: 6919884
<%
dim Source
dim Result
Source="Page 1"
if len(Source)<>15 then
   Result = String(15-len(Source),"*") & Source
else
   Result =Source
end if
%>


String function
  Fills a string with a specified character the specified number of times.

0
 

Author Comment

by:fairuznisha
ID: 6920155
thanks a lot...
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Add server behaviors to Dreamweaver CC 2015 2 183
Server Timeout with Loop 6 52
Passing Parameter to Stored Procedure 4 27
ASP exit 10 18
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question