Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. Javascript, split and convert

Javascript, split and convert

Scheduled Pinned Locked Moved Web Development
questionjavascript
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Esmo2000
    wrote on last edited by
    #1

    Sorry, these are real newb questions but I am having a lot of trouble! First, is there a function that 'splits' a string based on some chaaracter? Second, how can I convert a string to an integer? Thanks a bunch for your time! Jim

    A 1 Reply Last reply
    0
    • E Esmo2000

      Sorry, these are real newb questions but I am having a lot of trouble! First, is there a function that 'splits' a string based on some chaaracter? Second, how can I convert a string to an integer? Thanks a bunch for your time! Jim

      A Offline
      A Offline
      Abuhijleh
      wrote on last edited by
      #2

      to split myString = "A,B,C,D" splitString = myString.split(",") as for converting, string to integer, why do you wnat to do that? I believe Javascript will do the job for you, you don't need to add any special processing

      E 1 Reply Last reply
      0
      • A Abuhijleh

        to split myString = "A,B,C,D" splitString = myString.split(",") as for converting, string to integer, why do you wnat to do that? I believe Javascript will do the job for you, you don't need to add any special processing

        E Offline
        E Offline
        Esmo2000
        wrote on last edited by
        #3

        What I am going to do is store two integers in a row id using Javascript. They will be delimiited by a semi colon. One will be a string and the other is an integer. The reason I would need to convert is because it would be stored as a string, no? Thanks a LOT, Jim

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups