Jump to content

Inputbox


Edifice
 Share

Recommended Posts

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.

Link to comment
Share on other sites

Dim $salesman = ""

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

MsgBox (0, "", $salesman)

Cheers,

Brett

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...