| | |
Console.Readline help
Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Sep 2008
Posts: 14
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
Views: 2948 | Replies: 18
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2005 30minutes 2005 2008 access application arithmetic array basic binary bing button buttons c# center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design designer dissertation dissertations dissertationthesis dll dropdownlist error excel file-dialog folder ftp google hardcopy highlighting image images inline installer listview login mobile ms navigate net networking opacity output peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save savedialog searchbox serial server soap sorting sql string studio syntax tcp text textbox timer toolbox trim updown usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf






