Jump to content

Check if a box is blank


Lloyd Logan

Recommended Posts

Posted

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

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
Your code is correct.

Hmm, It is not showing the GUI when the register button is pressed, any ideas?

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
I can't see the event onClientGUIClick in your code.

Thanks for your time, I've have fixed it!

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

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
  • Recently Browsing   0 members

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