vb.net problem

Networking/Security Forums -> Programming and More

Author: vxLocation: norway PostPosted: 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 Wink

Last edited by vx on Sun Nov 26, 2006 8:53 pm; edited 2 times in total

Author: hebaLocation: Cremona (Italy) PostPosted: Fri Nov 17, 2006 1:40 pm    Post subject:
if you don't specifies that it is a text string the command:


read the variable like number and not text

Networking/Security Forums -> Programming and More

output generated using printer-friendly topic mod, All times are GMT + 2 Hours

Page 1 of 1

Powered by phpBB 2.0.x © 2001 phpBB Group