Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1087
  • Last Modified:

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

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
fairuznisha
Asked:
fairuznisha
1 Solution
 
appariCommented:
<%
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
 
fairuznishaAuthor Commented:
thanks a lot...
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now