Professional Web Applications Themes

Parsing string and inserting characters into it. - ASP

b = "08305212" b = left(b, 4) & "." & right(b, len(b)-4) "Bill" <billzimmermangospellight.com> wrote in message news:8da5f4f4.0307101357.3096ed47posting.google.c om... > I've got a situation where an isbn number for our book catalog is in > one database without a period in it, but needs to be converted for use > elsewhere and have a period put in it. > > So I need to pull up a number like 08305212 and turn it into 0830.521 > > The function will always count out the same number of spaces from the > front, then stick in a period, then add a ...

  1. #1

    Default Re: Parsing string and inserting characters into it.

    b = "08305212"
    b = left(b, 4) & "." & right(b, len(b)-4)



    "Bill" <billzimmermangospellight.com> wrote in message
    news:8da5f4f4.0307101357.3096ed47posting.google.c om...
    > I've got a situation where an isbn number for our book catalog is in
    > one database without a period in it, but needs to be converted for use
    > elsewhere and have a period put in it.
    >
    > So I need to pull up a number like 08305212 and turn it into 0830.521
    >
    > The function will always count out the same number of spaces from the
    > front, then stick in a period, then add a .jpg suffex on the end. This
    > is so our book isbn in our catalog will be able to pull up the .jpgs
    > that are already in a folder and have the name of the jpg as the isbn
    > number with the jpg suffex. Well, I'm sure you get the point.
    >
    > Thanks for you help.
    >
    > Bill

    Aaron Bertrand - MVP Guest

  2. #2

    Default Re: Parsing string and inserting characters into it.

    Bill wrote:
    > I've got a situation where an isbn number for our book catalog is in
    > one database without a period in it, but needs to be converted for use
    > elsewhere and have a period put in it.
    >
    > So I need to pull up a number like 08305212 and turn it into 0830.521
    >
    > The function will always count out the same number of spaces from the
    > front, then stick in a period, then add a .jpg suffex on the end. This
    > is so our book isbn in our catalog will be able to pull up the .jpgs
    > that are already in a folder and have the name of the jpg as the isbn
    > number with the jpg suffex. Well, I'm sure you get the point.
    >
    > Thanks for you help.
    >
    > Bill
    dim sISBN
    sISBN="08305212"
    sISBN=left(sISBN, 5) & "." & mid(sISBN, 6) & ".jpg"

    HTH,
    Bob Barrows


    Bob Barrows Guest

  3. #3

    Default Re: Parsing string and inserting characters into it.

    Thanks, Bob!

    Bill

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    William Zimmerman Guest

Similar Threads

  1. Question example for inserting double byte characters into db2 database in vb.net
    By Unregistered in forum Brainstorming Area
    Replies: 0
    Last Post: September 10th, 10:01 AM
  2. inserting Japanese characters to SQL Server via CFMX
    By jegrubbs in forum Coldfusion Database Access
    Replies: 1
    Last Post: May 9th, 02:19 AM
  3. Inserting Special Characters
    By eagle in forum ASP.NET Data Grid Control
    Replies: 3
    Last Post: November 29th, 08:04 AM
  4. Inserting characters in Illustrator 9.0
    By Jennifer_McClure@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 5
    Last Post: April 20th, 03:33 PM
  5. Inserting characters into certain position of file
    By John in forum Linux / Unix Administration
    Replies: 7
    Last Post: February 12th, 07:26 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139