Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Logic in button action...  RSS feed

 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want the following code to load the "No ID passed" string if nothing is in the input field, but it continues to query the database. I have tried null, 10 spaces (column width) and the old "" type of null.



Thanks for any / all assistance..
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>if(srchTxt.getText() == "")

if(srchTxt.getText().equals(""))
 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
D'OHH!

The one thing I had to stress to a junior programmer comes back to bite me.

I feel sheepish... Whoops, should say calvish..

Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!