Wrox Programmer Forums
BOOK: Visual Basic 2005 Programmer's Reference
This is the forum to discuss the Wrox book Visual Basic 2005 Programmer's Reference by Rod Stephens; ISBN: 9780764571985
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Visual Basic 2005 Programmer's Reference 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 9th, 2007, 01:25 PM
Authorized User
Join Date: Oct 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default arrays

I am a beginner and I am confused with debug.write and debug.WriteLine method. When I execute array program (page 148-149) in the chapter 4, I am not getting any output. When I replaced debug.write and debug.WriteLine with show.messagebox, I got an error that it returns no value. While replacing those methods with msgbox, program shows one digit one after another while pressing the return key every time. I have downloaded your programs for this book and when I execute them, I get the same result. Is there any way I can get the exact result that is shown in the book?

Old January 10th, 2007, 10:46 AM
Rod Stephens's Avatar
Wrox Author
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts

The Debug.Write and Debug.WriteLine statements send output to the Immediate window. If it's not visible you can find it by opening the Debug menu, opening its Windows submenu, and selecting Immediate.

Probably the example programs are writing into the window but you don't have it visible so you're not noticing. These statements are good for displaying output without interrupting the program's flow.

MessageBox.Show displays a message in a dialog so you have to interact with it before the program can continue. It should work much like MsgBox does. If you want to include the piece of code where you do it, I can take a look at it.

Author of "Visual Basic 2005 Programmer's Reference"

Sign up for the free VB Helper Newsletters at http://www.vb-helper.com/newsletter.html

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help With Arrays Crippy Ruby 2 March 6th, 2013 05:59 PM
arrays ozPATT Excel VBA 2 November 4th, 2005 06:11 AM
Multidemmesional Arrays OR arrays gmoney060 Classic ASP Basics 3 November 1st, 2004 03:42 PM
Arrays tajin Excel VBA 0 June 20th, 2004 09:07 AM

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