 |
| VB How-To Ask your "How do I do this with VB?" questions in this forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

May 17th, 2005, 01:24 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Public Function fix_characters(ByVal strValue As String) As String
Dim temp As String
temp = Replace(strValue, "'", "")
temp = Replace(temp, ":", "")
temp = Replace(temp, ",", "")
fix_characters = Replace(temp, """", "")
End Function
Marco
|
|

May 18th, 2005, 09:47 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks,
this works ok now:
Code:
''''''''''''''''''''''''''''''''''''''''''''''''''''
' Replace all problematic characters with ""
'''''''''''''''''''''''''''''''''''''''''''''''''''
Public Function fix_characters(ByVal strValue As String) As String
fix_characters = Replace(strValue, "'", "")
fix_characters = Replace(strValue, ":", "")
fix_characters = Replace(strValue, ",", "")
fix_characters = Replace(strValue, """", "")
fix_characters = Replace(strValue, "`", "")
End Function
www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
www.piccosmini.co.uk.tt
www.morton.uk.tt
|
|

May 19th, 2005, 04:26 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I will *very* surprised if that works... please check the code we sent you.
Look at your code: strValue is never changed, and fix_characters is assigned at the end, thus only the "`" will be removed.
Marco
|
|

May 20th, 2005, 09:57 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
hey guys i appoint that problem some post ago!!!
HTH
Gonzalo
|
|

May 20th, 2005, 01:30 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Gonzalo,
this is I I said to picco "WE sent you"... :-)
Marco
|
|

May 20th, 2005, 01:34 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
(looks confused while hiding himself under the table)
that king of thing happends when is not your first language ;)
;) sorry marco
HTH
Gonzalo
|
|
 |