Solved

displaying echo messages

Posted on 2002-03-09
2
124 Views
Last Modified: 2010-05-02
I'm running a compiled vb module from the command line and would like messages printed for debugging purposes.  I tried the below, which works fine in vbscript, but I get an "object not found" error in compiled vb.

set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo "Hello World"
0
Comment
Question by:arichee
  • 2
2 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6853911
Probably the best you can do is using a MsgBox statement:

MsgBox "Hello World"

Anthony
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 100 total points
ID: 6853917
Having said that, you may also want to take a look at the following articles from MSDN:

INFO: Certain WScript Methods and Properties Not Accessible in Visual Basic (Q279164)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q279164

HOWTO: Attach a Console Window to Your Visual Basic Program (Q171654)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q171654

Anthony
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access 2016 VB code 9 103
Put text in a picture ASP.NET C# 2 50
Excel - Save a copy of work book 13 83
Excel Automation VBA 19 37
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now