Author: vx, Location: norwayPosted: Sun Nov 05, 2006 12:38 pm Post subject: vb.net problem ---- I have a code (a console application) were I want to take an innput from the user and assign the value in a variable, i tryed to do it like this:
dim variable as string
variable = readline
but when I viewed the value it was just a number, not the letters i putted inn.
and then I tryed to see if this would work:
dim variable as string = reading()
Function reading() As String
Dim innput As String
innput = CStr(Read())
Return (innput)
End Function
but the same thing happened, I wrote in a few letters but the value og the variable was a number.
-had anyone a soulution to this?
-and by the way, what is the differens between
val(readline) and just readline?
-and when i write an innput like this to a variable:
variable=readline, how do I know which read()
tha value is assigned from?
couse if I have a read() method in the start of my program, just to make it pause for a secound, does the program think that that was the innput?
Thanks
Last edited by vx on Sun Nov 26, 2006 8:53 pm; edited 2 times in total
Author: heba, Location: Cremona (Italy)Posted: Fri Nov 17, 2006 1:40 pm Post subject: ---- if you don't specifies that it is a text string the command: