How can I put extra notaiton in a string.

Input from user : 4085561987
Out put should be (408) 556-1987
Thanks,
Ram

1) Why do you want to use a loop and an if statement? That's going to be far less clear and far less maintainable.
2) Your IF expressions don't make sense.
IF substr(v_string,i,1) THEN would only make sense if you compared the result of the SUBSTR to something. It's not obvious what you would compare that result to, though.
3) You still have an odd expression
i(v_string,i,6)which was earlier pointed out to be incorrect.
4) You almost certainly intend to use the keyword "ELSIF" rather than "ELSEIF"
5) At no point are you assigning any part of the v_string variable to the v_new_string variable.
Justin

Similar Messages

  • How can I put extra spaces between hyperlinks?

    After I insert hyperlinks they are too close together and are very hard to determine where they are apart from one another. How can I insert extra space between the links so they are more legible?

    design view:
    Home Page Why Hi-TEC? Services Our Staff Contact Us
    Make Appointment Our Credentials Learn About Your Car
    code view:
    <p> </p>
          <p><a href="index.html">Home Page</a> <a href="why_hitecauto.html">Why Hi-TEC?</a> <a href="services.html">Services</a> <a href="staff.html">Our Staff</a> <a href="contacts.html">Contact Us</a></p>
          <p><a href="appointment.html">Make Appointment</a> <a href="credentials.html">Our Credentials</a> <a href="about_your_car.html">    Learn About Your Car</a></p>

  • How can I put a movie on my ipod without deleting other movies?

    I have a movie (and extras) on my ipod nano that I downloaded years ago and placed my ipod. Unfortunately, that computer crashed and I no longer have the computer.
    I recently downloaded a digital copy of a movie that came with the DVD I bought on my new computer. When I tried to put this movie on my ipod, I received a message saying that in order to do this, I would have to link my ipod to this itunes library on my computer and it would delete my old movie. I don't want this happen so how can I put my new movie on my ipod without deleting my old movie (and extras)?
    (Also, I have no idea if this will be necessary information, but I want to give all the information for this question...the e-mail address I used to download the 1st movie is no longer in use due to security reasons. I've been using a new e-mail that has worked fine for downloading music and my new movie.)
    I hope someone can help me!
    Thank you in advance.

    Are you sure you have enough space on the ipod for the new movie? If you do, make sure it's loaded in i-tunes, and it's check box is checked, then click sync, or apply, and everything should load.

  • I want to break up my hour long video in iMovie 11 into smaller 15 minute segements to upload to youtube. How can i put EDITED VIDEO in new projects in iMovie?

    I want to break up my hour long video in iMovie 11 into smaller 15 minute segements to upload to youtube. How can i put EDITED VIDEO in new projects in iMovie? (each 15 minute segment to iMovie)

    In iMovie's Project Library view (where all your projects are listed), click on the name of your project (don't double-click to open it, just single click to highlight it).
    From the Menu select File > Duplicate Project. A copy of your project will be placed in the Project Library. It will have the same name as the original, but with a number appended. You can rename it if desired - click on its name twice (not double-click) so that it is highlighted as light blue, then over-type it.
    Delete from the duplicate all the clips and other media (for example, photos, music and so forth) that you don't want included in the first of your 15 minute segments. In other words, delete all but the first 15 minutes.
    Continue creating duplicates of the original (and rename if necessary). Delete from each duplicate all the unrequired parts for each segment. So, for example, for the 2nd duplicate delete the first quarter (15 minutes) and the 3rd and 4th quarters.
    You should end up with 4 duplicates with separate names, each containing the required segment. You will also have kept intact the original one hour movie, which you may wish to use independently of YouTube (maybe for burning a DVD or playback through a Media Player).
    Note that duplicating the original project will not take up much extra space on your drive. Projects reference (link to) the associated Event (or Events) in the Event Library - they don't actually contain video as such. The project file also keeps track of titles, transitions, effects, music and so forth that you've added to the project.
    John
    Message was edited by: John Cogdell

  • How can i put apps from one ipod to a new ipod?

    how can i put apps from one ipod to a new ipod?

    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • How can I put my icloud photos to camera roll or photo stream?

    I got a nee iphone, i backed up everything and restored it into mu new iphone, but the pictures didn't restore so i did it manually but now on my phone i got different albums icloud photo stream and camera roll. How can i put the icloud picture into camera roll or photo stream. Any ideas?? On my old iphone ive deleted everything.

    Hello Ozzie94,
    Thanks for the additional information. The camera roll is designed for photos taken on your device, or saved images from Mail and other applications. Photos synced from a computer are organized into their own album(s):
    View photos and videos - iPhone
    http://help.apple.com/iphone/7/#/iph3d267610
    - Camera Roll—photos and videos you took on iPhone, or saved from an email, text message, webpage, or screenshot
    - Shared photos and videos—Photos and videos that you’ve shared with iCloud Photo Sharing or that others have shared with you (see iCloud Photo Sharing)
    - Photos and videos synced from your computer (see Sync with iTunes)
    Additionally, you may find more information by using another one of Apple's support resources - https://getsupport.apple.com
    Thanks,
    Matt M.

  • How can I put my podcasts in one place and my music in another?

    How can I put my playlists on my NAS media server (Buffalo Linkstation mini) so I can access them through Home Sharing and Sonos?  FYI, right now I run my iTunes with media location on my laptop's c: drive so I can manage podcasts while on the go and map a lettered network drive to the media server device when I connect up at home.

    Duplicated: https://support.mozilla.com/en-US/questions/886179

  • How can i put my itunes library from an old mac g4 10.4.11 to an ipod2?

    How can i put my itunes library from an old mac g4 10.4.11 to an ipod2?

    Install iTunes 9.2.1 on your computer. If the device's requirements specify iTunes 10 or newer, you need to purchase Mac OS X 10.5 on DVD.
    (63879)

  • How can i put photos from my mac to my ipad touch

    How can i put photos from my mac to my ipad touch
    I have them in an album.
    Thanks for your help

    See:
    iOS and iPod: Syncing photos using iTunes

  • On Firefox 4, how can I put one "new tab" on the "tab bar" (The + sign) and one next to the "back/forward" buttons (as in FF 3.6)?

    On Firefox 4, how can I put one "new tab" on the "tab bar" (The + sign) and one next to the "back/forward" buttons (as in FF 3.6)?
    In my current Firefox, the "new tab" icon/item from the "customize" pop-up window menu of items is placed next to my home, back, forward buttons near the top-left of my header (Button 1 for "new tab"). Then, the tab bar automatically come with a small tab (with a + sign) to the right of your last tab opened (so you click on + and a new tab opens. Button 2 for "new tab"). I like to have this "new tab" button twice (as a + mini tab, and next to my "home icon".
    When I upgraded to Firefox 4, I seemed to be only able to "customize" or use the "new tab" in one place. Either as an icon next to home button, or as a "+ minitab", but NOT both.
    What can I do to put this button in Firefox 4 on BOTH places???
    Your help is really appreciated. I want to upgrade, but I want my buttons on both places...
    I upgraded to FF 4, but downgraded again just because this feature... that's just me of coarse :-)

    *New tab toolbar button: https://addons.mozilla.org/firefox/addon/new-tab-toolbar-button/

  • How can I put a .pdf (or table) in iWeb that one sees on the web site on a web page without downloading?

    How can I put a pdf (not downloadable, but viewed on the website) or a table in iWeb?

    If it's a one page PDF file just drag it onto the webpage and resize to fit. If it's a multi page PDF file you can add it as in this demo page: Scrolling Text Box
    OT

  • How can I put my recently purchased iTunes movies on to my thumb drive and WD My Passport external hard drive. My Mac keeps saying "can't be copy because it is too large for the volumes format

    How can I put my recently purchased iTunes movies onto my thumb drive and WD my passport external hard drive.My Mac is saying that can't be copied because it is too large for volumes format

    [file] is too large for the volumes format
    That is usually an indication that the Volume was never Erased or Partitioned for GUID partition table and Mac OS, and is still in a Windows format.
    Mac OS X Extended (journaled) has no such file-size limitations

  • I have ringtones on itunes how can I put them on my iphone 4

    I have ringtones on itunes how can I put them on my iphone

    It has always been very basic to always maintain a backup copy of your computer for just such an occasion.  Use your backup copy to put everything back.
    If for some strange reason you have failed to backup ( not good at all), then you can transfer itunes purchases from an ipod:  File>Transfer Purchases

  • I have three different listings for Bob Seger on my iPod (bob Seger, Bob Seger System and Bob Seger and The Silver Bullet Band) How can I put all 3 in the same artist folder without changing artist name?

    I have three different listings for Bob Seger on my iPod (Bob Seger, Bob Seger System and Bob Seger and The Silver Bullet Band) How can I put all 3 in the same artist folder without changing artist name?

    Can you just create a new "Playlist", name it Bob Seger and drag what you want into the Playlist.
    File/New Playlist

  • Okay so i recorded a song but each part comes out as like take 1, i have 10 takes. how can i put them all together as one take, to make one song all in one take not small pieces of a song.

    okay so i recorded a song but each part comes out as like take 1, i have 10 takes. how can i put them all together as one take, to make one song all in one take not small pieces of a song. like i hit record and sang the entire song but when i hit play it was in pieces not just one song like it was in ten takes. is there any way i can blend it all into one take, to make one clear song?

    You're not very clear in stating your problem. Maybe it's terminology: "takes" in recording lingo (and in GB lingo) are different version of exactly the same part in a song, so you only want one of them in the end. Please tell us exactly what you did and what it is that you don't like.

Maybe you are looking for

  • Needs to be restored, but it wont connected to the computer.

    I have a 5th gen iPod classic that I bought off Amazon. A few days ago, when I plugged it into my computer, it told me it needed to be restored. So I went throught the prosses, and when it finihed putting all my music back on, I disconnected it. When

  • Firefox OS 1.3 simulator doesn't work.(runs but shows a black screen)

    I am learning app development for firefox os.I installed a simulator for version 1.3 at my work place and it was working fine.I could write simple web app and run on the simulator.But when i installed the emulator on my home pc It was installed succe

  • Trying to create 3 schemas from one schema

    DB version : 11.2.0.2 Enterprise Edition Platform : RHEL 5.6 I have an expdp dump of a schema (HRTB_AP_PROD). I wanted to create 3 schemas from this dump in one go. So i tried this ## The parfile I used DIRECTORY=DPUMP_DIR DUMPFILE=HRTB_AP_PROD%u.dmp

  • Beachball and long pauses in iDVD 6 menus and buttons

    Over the weekend I have made several DVDs sucessfully in iDVD 6.0.2. The application never actually crashed on me but when doing simple things like dragging the scroll bar to look at the various themes, clicking on the buttons for "media" etc or just

  • Move and Scale Action

    I have text moving from one place to another using the Move Action. The text itself is too small to really be able to read, so I'm looking for the best way to increase the size of the text (not necessarily scale as that will give me fuzzy text) from,