Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 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 January 19th, 2005, 04:21 AM
Authorized User
 
Join Date: Oct 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Escaping Ampersand Entities

Hi everyone,

    I've problem on escaping ampersand entities such as & < in vb. In html, it is automatically escaping the ampersand entities like & to &
But in vb, it display as a string (&). Is it possible to solve this problem? Any suggestion will be appreciated. Thanks a million.

Su Loon
 
Old January 27th, 2005, 04:46 AM
Authorized User
 
Join Date: Oct 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anyone can help me out? Thanks a million!
 
Old February 5th, 2005, 04:46 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Where are you trying to put these characters? In a normal string, say

Code:
Dim sample as String
sample = "#£"
The only character that needs an escape sequence is ", you escape this by doing double quotes:

Code:
Dim sample as String
sample = "Hello ""Tan Su Loon""!"
MessageBox.Show(sample)
You'd be better off posting this sort of thing in the Beginning VB/Beginning VB.Net forum - this forum is for discussions on the new version of Visual Studio, not for help requests






Similar Threads
Thread Thread Starter Forum Replies Last Post
Ampersand SQL equivalent Coby Access VBA 1 May 4th, 2007 06:25 AM
ampersand in hyperlink is not working bcogney XML 5 August 23rd, 2006 04:27 PM
ampersand problems with XML crmpicco Excel VBA 5 May 5th, 2005 06:33 AM
AMPERSAND disappears when given along with # happygv Forum and Wrox.com Feedback 2 October 25th, 2004 09:49 PM
ampersand in a querystring trangd Beginning PHP 3 October 23rd, 2003 07:54 PM





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