Results 1 to 8 of 8

Thread: Colums

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843

    Colums

    I know this has been answered quite a few times, but I cant find it with the search. SO here it goes AGAIN.....

    I want to save this text in my database

    I'll go


    but since it has the ' it sends me an error. I did the replace(str,"'","''") but that saves i''l go and I dont want that... I want I'll go

    how can I do this?
    "The difference between mad and genius is the success"

  2. #2
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    Code:
    myStr=replace(myStr, "'", "''")
    
    'for you understanding same thing but with extra spaces
    
    'replace(myStr," ' ", " ' ' ")

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843
    yeah but that will save '' in the database.. I just want one.. '

    like this I'll go
    not... I''ll go

    ??
    "The difference between mad and genius is the success"

  4. #4
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    It will save just one '.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843
    it doesnt...!! I laredy tried!!
    "The difference between mad and genius is the success"

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843
    why is this happening?
    "The difference between mad and genius is the success"

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    how are you saving the data?
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843
    Oh it is working now.. sorry... it is so confusing....
    "The difference between mad and genius is the success"

Posting Permissions

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



Click Here to Expand Forum to Full Width