Extracting two string texts...


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Extracting two string texts...

Hybrid View

  1. #1
    Join Date
    Dec 2004
    Location
    Porto - Portugal
    Posts
    40

    Question Extracting two string texts...

    Hi everyone,

    I was wandering...I've got a routine that gives me as a result this kind of string:

    "text1","text2"

    the quotation marks and the comma are included in the string. Now, isn't there a easy and direct way of extracting the text1 and text2 to 2 separate variables?

    Kind regards,

    Kepler

  2. #2
    Join Date
    Sep 2004
    Location
    Lahore
    Posts
    29
    Here is an Example, which may help you.
    Attached Files Attached Files

  3. #3
    Join Date
    Aug 2004
    Location
    Europe , Netherlands , Rotterdam
    Posts
    69
    well i would use the split command for this situation with the , as a delimiter
    this will return a array with the values
    then with replace you can replace the " marks with nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center