Jump to content
Sign in to follow this  
Edifice

Inputbox

Recommended Posts

Edifice

Hello again guys

Project finished, and I'm moving on to the next one.

Just started, and I need an inputbox that I am 100% positive contains a value of some sort. Thus the while:

Dim $salesman = 0

While $salesman = 0
    $salesman = InputBox("Headline", "Who are you?", "", "", 200, 100)
WEnd

but why does my program do that while an inf. number of times no matter what I input?

The thought was that after input the $salesman would no longer be 0 and the program would move past the while.

Share this post


Link to post
Share on other sites
BrettF

Dim $salesman = ""

Do
    $salesman = InputBox("Headline", "Who are you?", "", "", 200, 100)
Until $salesman <> ""

MsgBox (0, "", $salesman)

Cheers,

Brett

Share this post


Link to post
Share on other sites
Edifice

Thanks man.

Sorry for my lack of creativity - I should have figured that one out myself, but it's been two years since i did any real programming :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.