Jump to content

Help with guiGetText


callum123

Recommended Posts

Hey, having a little trouble here.

So i have a memo created and I want to get the text thats inside the memo and then do a test on it to see if its blank. I am trying to do...

if guiGetText(descriptionMemo) == "" then 
      random code here 
else 
      random other code here 
end 
  

For some reason when the memo is blank or if it has value in it, it will skip that line and then do whats in the else. Any suggestions?

Link to comment

That should work perfectly - simply because I've done this for a hundred times.

As Aibo already mentioned, you could check if the descriptionMemo is actually defined somewhere and then make sure you actually trigger those functions correctly.

Perhaps give us a little bit more code so we can help you out.

Link to comment

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...