Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

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 have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

776 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