String Manipulation

Results 1 to 4 of 4

Thread: String Manipulation

  1. #1
    Lance Guest

    Default String Manipulation

    I have a variabel that = 000002304<BR>but I want it to look like 2304<BR>What is the easiest way to do this?

  2. #2
    Join Date
    Dec 1969

    Default RE: String Manipulation

    Response.Write Clng(varName)

  3. #3
    Abner Guest

    Default RE: String Manipulation

    Well if *ALL* your variables start with four &#039;zeros&#039;, you can write a replace function and tell it to make exactly 4 substitutions, as such:<BR><BR>variable = Replace(variable, "0", "", 4)<BR><BR>I BELIEVE this works...Never actually done it but the replace function *does* provide for it.<BR><BR>Hope that helps<BR>-not an expert-<BR><BR>A.

  4. #4
    Quazar Guest

    Default RE: String Manipulation

    Try <BR>var = 000002303<BR>var = INT(var)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts