Solved

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

Posted on 2002-04-04
2
1,072 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RegEx Help - open to other simple suggestions 8 63
document.getElementById not worj with 2 IDs with the same name 10 57
Clear input text 15 26
ASP and Extracting XML 7 27
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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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