|
-
Jun 12th, 2001, 12:58 PM
#1
Thread Starter
New Member
InputBox Not working, NameSpace ...?
Hi Every One,
Just intalled VB.NEt and the all of other .NET stuff including the SDK for ASP.NET.
After going through one of the articles in vb-worl I tried to use the input box funtion and the error I get is
'InputBox' is a namespace, and so is not a valid expression. Expected a variable, constant, or procedure.
What do I have to do just to get a Input Box working ?
Shaheryar
PS: This is not going to be as easy as I thought
-
Jun 17th, 2001, 09:20 AM
#2
New Member
re: input box
inputbox does work within net.
either use
microsoft.VisualBasic.InputBox("What color is your hair?", "Hair Colour Detector")
or
InputBox("What color is your hair?", "Hair Colour Detector")
are equally valid forms of code.
Have another go. Or maybe check your install. Did you change your profile to visual bsic developer?. Cause that would probably make a difference with the namesake.
-
Jun 17th, 2001, 09:48 AM
#3
Thread Starter
New Member
thanks
Hi,
Thanks for the help. As I found out my problem was not syntax but the fact that I had named this vb .net project as InputBox and therfore it was giving me the namespace error.
Thanks lot
By the way have you coonected to a database using vb.net , but with out the use of all the new wizards, just by a dsn-less connection as in VB 6.0. I am gaoing to post this is a seprate thread in the posts!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|