P peggjones Active Member Licensed User Longtime User Oct 10, 2013 #1 Can anyone tell me why this statement dim buttonadd as button buttonadd.Initialize(ButtonAdd_Click) Should cause the buttonadd routine to actually run? I thought it simply defined a routine that would run if the button was clicked not run it. Thanks
Can anyone tell me why this statement dim buttonadd as button buttonadd.Initialize(ButtonAdd_Click) Should cause the buttonadd routine to actually run? I thought it simply defined a routine that would run if the button was clicked not run it. Thanks
NJDude Expert Licensed User Longtime User Oct 10, 2013 #2 That's wrong. first because the event name should be enclosed in quotes like this: B4X: buttonadd.Initialize("ButtonAdd") And second, no need to add the "_Click". Last edited: Oct 10, 2013 Upvote 0
That's wrong. first because the event name should be enclosed in quotes like this: B4X: buttonadd.Initialize("ButtonAdd") And second, no need to add the "_Click".