Lloyd Logan Posted January 3, 2014 Share Posted January 3, 2014 Hey, So from my experience with Java, if a field is empty it equals to null . So, if I want to check if an edit box has no letters/words in it, how would i go about it? So far i got; function checkRegField() inputusername = guiGetText(editusername) if inputusername == "" then guiSetVisible (GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2] ) ) end end Thanks Lloyd Link to comment
Lloyd Logan Posted January 3, 2014 Author Share Posted January 3, 2014 Your code is correct. Hmm, It is not showing the GUI when the register button is pressed, any ideas? Link to comment
TAPL Posted January 3, 2014 Share Posted January 3, 2014 I can't see the event onClientGUIClick in your code. Link to comment
Lloyd Logan Posted January 3, 2014 Author Share Posted January 3, 2014 I can't see the event onClientGUIClick in your code. Thanks for your time, I've have fixed it! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now