| | |
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 |
"crystal .net .net2005 30minutes 2005 2008 access arithmetic array assignment basic binary bing box button buttons center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist editvb.net excel file-dialog firewall folder ftp google hardcopy image images isnumericfuntioncall listview login math memory mobile ms mssqlbackend mysql navigate net networking opacity output peertopeervideostreaming picturebox picturebox1 port print printpreview problemwithinstallation project record reports" save savedialog searchbox serial soap sorting string tcp temp text textbox timer toolbox trim updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf






