Jump to content

how to check if an input box is empty


Recommended Posts

First of all, are you talking about an InputBox or a GuiCtrlCreateInput? If you are using InputBox, $input1 == "" will work. If you are using the GuiCtrlCreateInput method you will need to use GuiCtrlRead($input1) to get the contents of the input box.

In the future, provide as much detail as possible. Saying that something doesn't work does not really give us much information. Always provide the code you have tried so that we can assess the problem.

Link to comment
Share on other sites

Hi,

as Zorphnog suggests:

$input1 = GuiCtrlCreateInput.......

If GuiCtrlRead($input1) = "" Then MsgBox (0,"Empty.....", "....Input detected!")

;-))

Stefan

Edited by 99ojo
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...