Connecting Tech Pros Worldwide Help | Site Map

Printing the Output in the Console ?

Needs Regular Fix
 
Join Date: Dec 2006
Posts: 293
#1: Mar 23 '09
I am developing a console based application which fetches the email ID of a user from the Active Directory :

Expand|Select|Wrap|Line Numbers
  1. EmailAddress = GetEmailFromActDir("Tony")
How to print the the Email Address obtained above?
Member
 
Join Date: Mar 2009
Location: Kathmandu
Posts: 42
#2: Mar 23 '09

re: Printing the Output in the Console ?


Console.WriteLine(EmailAddress)
Console.ReadKey() 'just to wait for a press of key
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,743
#3: Mar 23 '09

re: Printing the Output in the Console ?


That doesn't print. That displays on screen.
Member
 
Join Date: Mar 2009
Location: Kathmandu
Posts: 42
#4: Mar 23 '09

re: Printing the Output in the Console ?


Quote:

Originally Posted by tlhintoq View Post

That doesn't print. That displays on screen.

Question was
Printing the Output in the Console?

So Console.Writeline, writes in console :)
Member
 
Join Date: Mar 2009
Location: Kathmandu
Posts: 42
#5: Mar 23 '09

re: Printing the Output in the Console ?


Here is the link of c# code, pretty forward to translate to vb

http://www.daniweb.com/forums/thread101927.html

And little below, link to topprinter.exe
Reply