| | |
Console.Readline help
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Sep 2008
Posts: 12
Reputation:
Solved Threads: 0
hay,
the below method is the method to use type casting and it will execute
u check it (if u want to cast as value use below or else use type cast(source,typename))
Dim a, quantity As Double
Console.Write("How many liters(only whole liters please )? ")
a = Console.ReadLine()
quantity = CType(a, Double)
Console.WriteLine(quantity)
reply pls.,,
the below method is the method to use type casting and it will execute
u check it (if u want to cast as value use below or else use type cast(source,typename))
Dim a, quantity As Double
Console.Write("How many liters(only whole liters please )? ")
a = Console.ReadLine()
quantity = CType(a, Double)
Console.WriteLine(quantity)
reply pls.,,
•
•
Join Date: Sep 2008
Posts: 7
Reputation:
Solved Threads: 0
I know of the "Convert "class in vb and i think you can try this
VB.NET Syntax (Toggle Plain Text)
dim quantity as double quantity=convert.toDouble(Console.Readline)
![]() |
Similar Threads
- Printing from a console application (C#)
- how to use timer in console app (VB.NET)
- VB.Net experts: I need some help (VB.NET)
- hey guys; having some trouble with this program i'm writing (Java)
- Loop program help (C++)
- Trying to write a program that you can enter #s and multiply at the end. (Java)
- Return Length of a string? (C++)
Other Threads in the VB.NET Forum
- Previous Thread: Automatically type...?!
- Next Thread: Need help in placing icon for windows application
| Thread Tools | Search this Thread |
.net .net2008 2005 2008 access account array basic beginner bing browser button buttons center check checkbox client code convert crystalreport cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic dropdownlist eclipse excel fade filter forms ftp generatetags gridview html images inline input insert intel internet listview mobile monitor net objects open panel passingparameters pdf picturebox port position print printing problem read remove save searchbox searchvb.net select serial settings shutdown soap sqlserver survey table tcp temperature textbox timer timespan transparency trim update user vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode year






