Results 1 to 3 of 3

Thread: How can I send a parameter to a custom button click event?

  1. #1

    How can I send a parameter to a custom button click event?

    I have a custom commandbutton class that I want to reuse. Meaning, I have several buttons created using "Mybuttons".
    I want to pass a unique id to click event so that I know which button was clicked.

    Something like below.
    Code:
    define class mybuttons as commandButton
    	proc click( param1)
    		do case
                      .....
                    endcase
    
    
    	endproc	
    enddefine
    Thanks

    Herb

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Herb,

    Just create your button and assign it a unique id. In the click event you can then reference this.id.
    Last edited by barrymavin; 2016-05-24 at 20:56.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    ahhh....this.name works just fine.

    Thanks Barry.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us