This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Pass value onClick to a function *SOLVED*  RSS feed

 
Bradly Fackrell
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*SOLVED* I couldn't see how to remove this so I'll post my solution.

All I had to do was remove int


*SOLVED*
Original Question:
Is possible to pass a value from a button click to a function? Here is what I'm trying to do with no success:



I'm pretty sure that I'm just not passing my int properly.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, simple syntax error.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!