• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

vb.net problem

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More

View previous topic :: View next topic  
Author Message
vx
Just Arrived
Just Arrived


Joined: 27 Oct 2006
Posts: 0
Location: norway

Offline

PostPosted: Sun Nov 05, 2006 12:38 pm    Post subject: vb.net problem Reply with quote

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
Back to top
View user's profile Send private message MSN Messenger
heba
Just Arrived
Just Arrived


Joined: 09 Jan 2006
Posts: 4
Location: Cremona (Italy)

Offline

PostPosted: Fri Nov 17, 2006 1:40 pm    Post subject: Reply with quote

if you don't specifies that it is a text string the command:

CStr

read the variable like number and not text
Back to top
View user's profile Send private message
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
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!

Community Area

Log in | Register

Readers' Choice

Which is your preferred data recovery solution?

Follow TechGenix on Twitter