Android Question name property

Discussion in 'Android Questions' started by luke2012, Jan 19, 2015.

  1. luke2012

    luke2012 Well-Known Member Licensed User

    Hi to all,
    it's possible to access the name property of a view by code (without using the tag property) ?

    For example:

    Code:
    '*** Caller event within the object
    Private Sub panel1_Click  
        
    'raise the specify event in the caller module
        If SubExists(mModule, mEventName & "_Click"Then
            CallSubDelayed2(mModule, mEventName & 
    "_Click", panel1)
        
    End If
    End Sub

    '*** App Main module
    Sub MyEventName_Click (pnl As Panel)
           
    if pnl.name = "panel1" then ...
    end sub
    The point is : how known the name of the panel where the event was generated ?
     
    Last edited: Jan 19, 2015
  2. RandomCoder

    RandomCoder Well-Known Member Licensed User

    I'm afraid not, this property isn't exposed.
     
  3. DonManfred

    DonManfred Expert Licensed User

    This property cant be exposed. There is no such property

    You can create a map and put all panel into this map giving the object a keyname which you then can use to get the panel from the map.
     
    luke2012 likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice