vb.net console apps syntax ?

D

D.J.

I've dug thru the help files in vb.net ver 1.0 and I've purchased
several books. I also searched various web sites.

But I cannot find detailed information on a start to finish console
application inputing integers and text, using separate input lines.

I do have experience with pascal and earlier forms of basic. So its
the syntax I'm not sure of.

Are there any web sites or books that cover this ?

I know I could probably do all of this in a gui, but I choose to use
a console app.

Thanks for any help,
JimP.
 
H

Herfried K. Wagner [MVP]

Hello,

D.J. said:
I've dug thru the help files in vb.net ver 1.0 and I've purchased
several books. I also searched various web sites.

But I cannot find detailed information on a start to finish console
application inputing integers and text, using separate input lines.

\\\
Console.Write("Name: ")
Dim s As String = Console.ReadLine()
Console.WriteLine("You entered ""{0}"".", s)
///

HTH,
Herfried K. Wagner
 
D

D.J.

] have a look at console.readline() in the doc's

the book that came with my copy of vb.net was a set of excerpts from
4 books. Nothing else in there. Unfortunately, it didn't contain the
info I needed. I got the minimal 'home user' version.

Thanks.
JimP.
 
D

D.J.

] \\\
] Console.Write("Name: ")
] Dim s As String = Console.ReadLine()
] Console.WriteLine("You entered ""{0}"".", s)
] ///

Thanks, I'll try that.

I think I did have something similar, but when I put it into a loop,
to read multiple integer values in and add them together, etc. it
didn't work. Probably I misunderstood vb.net arrays.

JimP.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top