• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1088
  • 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

1 Solution
dim Source
dim Result
Source="Page 1"
if len(Source)<>15 then
   Result = String(15-len(Source),"*") & Source
   Result =Source
end if

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

fairuznishaAuthor Commented:
thanks a lot...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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