B4J Question [BANAno] [SOLVED] How to find element existance?

Discussion in 'B4J Questions' started by Mashiane, Jan 24, 2019.

  1. Mashiane

    Mashiane Expert Licensed User

    Hi there

    Sorry on wrong forum - this is a question

    How do I check if an element exists?

    Sub ElementExists(elID as stringAs Boolean
    dim el As BANanoElement = BANano.GetElement(elID)
    if el <> Null then
    Return False
    Return True
    End Sub

    return ElementExists("#me")
    End if
  2. DonManfred

    DonManfred Expert Licensed User

    Seems this is NOT a tutorial!? This is the Tutorial forum.
  3. Mashiane

    Mashiane Expert Licensed User

    We cant delete or move it hey... noted just after I posted..
  4. alwaysbusy

    alwaysbusy Expert Licensed User

    Sub ElementExists(elID As StringAs Boolean
    Return BANano.GetElement(elID).Length > 0
    End Sub
    joulongleu and Mashiane like this.
  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