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

Mashiane

Expert
Licensed User
Longtime User
Hi there

Sorry on wrong forum - this is a question

How do I check if an element exists?

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

return ElementExists("#me")
End if
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…