B4A Question [Solved]A problem about ' xui.SubExists(Component As Object ,Sub as String,NotUsed As int) As Boolean ' in B4A,B4j and B4i - Olaan    
Sep 11, 2025 this as belows
#If B4i
If xui.SubExists(mCallBack, mEventName & "_ResultCalculated... "_ResultCalculated", result)
End If
#Else
If xui.SubExists...
link:
Sorry, Steve, I replied because I saw you weren't online
Not a problem, chime in whenever you ...
link:
From the target Sub:
Sub ResultCalculated(Result as int)
End Sub
Has 1 parameter
Sorry, Steve, ...
link: From the target Sub:
Sub ResultCalculated(Result as int)
End Sub
Has 1 parameter...
B4J Question Using XUI.SubExists in a Server project - Alessandro71    
Jun 25, 2025I have many classes that I use in cross-platform app projects that are using XUI.SubExists before... use XUI in a NON-UI project, so all XUI.SubExists are marked as errors.
I also tried to make my own...
link:
The "sad" thing 😄 is that you can't use graphics in a server project (which is why ...
link:
it kinda voids the main purpose of using xui.SubExists (cross-platform source).
The "sad...
link: yes, even if it would require modifying all sources with xui.SubExists calls with STUBMODULE...
B4J Question [BANano] [solved] SubExists is returning False yet Sub is defined.. - Mashiane    
Apr 6, 2022Hi there
I have defined this sub in my class module
Sub BeforeRouteEnter(boTo As Map, boFrom As Map, boNext As BANanoObject)
Log("home: BeforeRouteEnter...")
End Sub
I was wondering why my app has not been working. I am checking with SubExists if the sub exists before I register it for use, thus in my case the sub is not registered because it does not exist.
or perhaps the sub...
link: Eish,, RemoveDeadCode was on and no comment for 'IgnoreDeadCode.
Phew...
B4i Question SubExists use cases - Alessandro71    
Sep 15, 2020 the different SubExist implementation: in B4A it has just 2 arguments, while in B4i it also requires and additional argument as the number of called sub args
So the following B4A code
If (SubExists...
will become
#if B4A
If (SubExists(callback, "RefreshFPS")) Then
#else if...
link: Use:
If xui.SubExists(callback, "RefreshFPS", 1) Then
CallSub2(callback...
link: see here
https://www.b4x.com/android/help/xui.html#xui_subexists
If xui.SubExists(callback...
Java Question subExists, raiseEvent - Semen Matusovskiy    
Oct 7, 2018 Initialize (BA ba, String eventName)
{
if (ba.subExists (eventName))
{ BA...
Log ("Sub eventName")
End Sub
Why subExists returns "No", unlike inside main...
link: Thanx, Erel. Underscore is last about which I thought :) Now a test works, hope this will fix troubl...
link: You shouldn't add the underscore.
smTest.Initialize ("eventname")
...
link: Thanx.
Inline java is another question (java code here is inserted into activity class).
In case of...
B4A Question Why this SubExists don't works? - LucaMs    
Apr 29, 2014 front and will then execute ShowList
If SubExists("Activity2", "ShowList") Then ' don't works
' If SubExists(Activity2, "ShowList") Then ' don...
link: You can use CallSubDelayed to raise events. Just make that the target sub exists in this case....
link: Isnt CallSubDelayed supposed to start the target activity/service? This is why I use it to raise eve...
link: You don't need to use SubExists. Nothing happens if the sub doesn't exist.
See SubExists...
Java Question raiseEvent and subExists - Roger Garstang    
Feb 15, 2013 exists with subExists then if so raiseEvent.
2. Just call raiseEvent.
Now, since I haven't seen a problem either way I'm assuming the first thing raiseEvent does is to call subExists? So...
link: Ok Erel, perfect! thanks!...
link: You have set allowDuringPause to true. This means that the event will be raised even if the activity...
link: Hey Everybody,
I try with RaiseEvents2 and now works!
Somebody can explain that?
NOT WORKS
objb...
B4A Question SubExists, CallSub and Obfuscation - Erel (first post)    
Jun 8, 2021   
(2 reactions)It will be fixed at some point....
link:
You are correct
:)
Will this be 'fixed' in a later B4A version or will it remain a 'fe...
link: as a property. I was surprised that CallSub worked and SubExists failed. This is related to...
link: Let me check it......
Spanish Que es lo que hace SubExists? - roerGarcia (first post)    
Mar 9, 2021   
(1 reaction)De hecho, la aplicacion que quiero extender y terminar ya usa jrdc2, es muy veloz, al grado de ejecu...
link: Otra. puedes tomar la idea de JRDC2, como hace para leer un archivo y ejecutar comandos, en este cas...
link: Aunque conozco esas librerias / codigos el search y el minisearch (que tengo incluido en una seccion...
link:
Hola roerGarcia:
Sólo una idea. Y qué tal un B4XSearchtemplate de las XUI Views en la que al ir es...
B4A Question Classes are soon coming... - Erel    
Jun 4, 2012   
(2 reactions)   
tags: Classes keywords.
Polymorphism - Duck Typing with SubExist (new keyword) and CallSub keywords.
Inheritance...
Page: 1  
2  
3  
4  
5  
6  
7