473,395 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

vb.net console apps syntax ?


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.
--
Jim Disclaimer: Standard
July 30, 2003: http://blue7green.net/crestar/index.html
drive-in theatres: http://www.drivein-jim.net/
Nov 19 '05 #1
4 3573
Hello,

"D.J." <bl********@wowserscrosswinds.net> schrieb:
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
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 19 '05 #2
have a look at console.readline() in the doc's

Glenn Wilson

"D.J." <bl********@wowserscrosswinds.net> wrote in message
news:h4********************************@4ax.com...

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.
--
Jim Disclaimer: Standard
July 30, 2003: http://blue7green.net/crestar/index.html
drive-in theatres: http://www.drivein-jim.net/

Nov 19 '05 #3

"Glenn Wilson" <gn******@optusnet.com.au> wrote:
] 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.
--
Jim Disclaimer: Standard
July 30, 2003: http://blue7green.net/crestar/index.html
drive-in theatres: http://www.drivein-jim.net/
Nov 19 '05 #4

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote:
] \\\
] 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.
--
Jim Disclaimer: Standard
July 30, 2003: http://blue7green.net/crestar/index.html
drive-in theatres: http://www.drivein-jim.net/
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ken VdB | last post by:
Hi everyone, One of the things that really interested me about VS.net was that I can now create a console based app using VB. I have a number of QuickBASIC 4.5 apps which we are still using and...
5
by: Barry Mossman | last post by:
Hi, can I detect whether my class is running within the context of a Console application, vs say a WinForm's application ? also does anyone know whether the compiler or runtime is smart enough...
17
by: MumboJumbo | last post by:
Hi I have a really basic question hopefully some can help me with: Can you write a (i.e. one) C# project that works from the cmd line and gui? I seems if i write a GUI app it can't write to...
6
by: MeowCow | last post by:
I will try and make my question with out being too long winded. I have been doing a lot of reading on how to do multithreading and I have implemented the code from the following example on...
7
by: Robert | last post by:
Hello, I'm using Pythonwin and py2.3 (py2.4). I did not come clear with this: I want to use win32-fuctions like win32ui.MessageBox, listctrl.InsertItem ..... to get unicode strings on the...
0
by: serpius | last post by:
Hello Everyone, I am a beginner in VB.Net 2003 and am taking classes in beginning VB.net. To make a long story short, I am looking for real samples of coding in Console Apps. I am the type of...
4
by: Paul Hemans | last post by:
Hi newbie here. I am learning c++/cli I by writing console apps. When my apps finished they used to display a message at the bottom of the screen, something like "press any key to continue" so that...
3
by: Alex | last post by:
Hello, I'm wroting a console utility in VB 2005, and I need the ability to pass parameters to the application when the program runs. For example, if my program is called testing.exe, I need to...
5
by: =?Utf-8?B?UGFvbG8=?= | last post by:
I'm learning C# via console apps (to avoid getting bogged down in Windows stuff). I'm wondering how the OO paradigm would work. Say I'm developing 'classic' menu-driven apps where a menu gives a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.