Posted: 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())
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?
Last edited by vx on Sun Nov 26, 2006 8:53 pm; edited 2 times in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Looking for more Windows Networking info?
Sign up to the WindowsNetworking.com Monthly Newsletter, written by Enterprise Security MVP Deb Shinder, containing news, the hottest tips, Networking links of the month and much more. Subscribe today and don't miss a thing! View a sample newsletter.
Become a WindowsNetworking.com member!
Discuss your Windows Networking issues with thousands of other Windows Newtorking experts. Click here to join!