Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
|
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 November 21st, 2006, 04:34 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default String.Concat NOT same as '&"

I've just spent the last several hours converting all string concatenations from "&" to use string.concat because it's reportedly "better". My program is suddenly not performing correctly. A trace turned up an anomaly - String.Concat appears to work with datetime fields differently from "&":

Print "" & datTour

produces:

"6:00:00 AM"

but...

Print string.concat("", datTour)

produces:

"1/1/0001 6:00:00 AM"

Can somebody explain why the difference exists and whether there's an easy fix that doesn't require me to change all 500+ concatenations back to their original formats again?





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to do Very Large String Concat? EcceBozo XSLT 2 July 29th, 2008 03:58 PM
Mailto string and concat paul20091968 Access VBA 1 August 10th, 2006 12:40 PM
Strange string concat edislasm Javascript How-To 2 September 6th, 2005 02:17 AM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
How to compare a string with the & sign in it? apd8x Javascript 3 June 13th, 2003 02:25 AM





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