• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

button x,y values

 
eric clark
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i wanna access some button instance and test if x and y values do not exist, so i tried the following:
if( (paraname != "x" ) && ( paraname != "y") )
now it seems that they cant be accessed this way, some1 knows?
thx eric
 
Danny Mui
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well i don't quite understand your question, but the basic java syntax to check whether or not a variable string equals another string is to use the .equals() function.
paramname.equals("x")
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic