Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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
 
Old June 21st, 2006, 04:11 PM
Authorized User
 
Join Date: Mar 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Removing Double Qoutes from string

I cant seem to get the replace function to work on my string.

employee=employee.replace("""","")

it still comes out with "Jones, Bob"

instead of Jones, Bob

Why?

 
Old June 26th, 2006, 01:04 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Could you fill in a little more context?
when VB shows the contents of a variable as you hover the mouse pointer over it, it adds quote marks at each end in the pop-up display which are not actually contained in the variables data. The same when you post something to the debug window—it gets surrounded by quotes that are not actually part of the data.
 
Old June 26th, 2006, 02:44 PM
Authorized User
 
Join Date: Mar 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know , It was showing up in the debug window as ""Jones, Bob"".
But I just did a find/replaceAll on the file, and that fixed the problem for now anyways.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Double Quotes from a string Durkee VB.NET 2002/2003 Basics 12 October 4th, 2007 12:10 PM
Cast from string "" to type 'Double' is not dounme SQL Server 2000 1 February 18th, 2005 01:44 AM
casting double to String. chikodi Servlets 2 October 23rd, 2003 02:50 AM
String to Double conversion mkpriya VS.NET 2002/2003 3 October 21st, 2003 05:26 AM
double to string? chris97b Visual C++ 4 September 23rd, 2003 02:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.