B4A Class [B4X] CallSubPlus - CallSub with explicit delay - Erel    
Nov 30, 2015   
(26 reactions) it much simpler. You just need to call CallSubPlus with the target sub and the delay.
Internally it uses a (one shot) timer together with CallSubDelayed or CallSub.
There are four methods:
CallSubPlus...
link: .
Note that there is no reason to use CallSubPlus now that Sleep is available. Just call Sleep and then...
link: it wasn't Initialized
Private Sub PlusImpl(Module As Object, SubName As String, Delay As Int, Arg...
link: .... Just look out for the library "CallSubUtils" in the Library-Tab
PD: Welcome in...
B4R Tutorial Timers, Loopers and CallSubPlus - Erel    
Jan 8, 2017   
(19 reactions) Timer1_Tick
pin13.DigitalWrite(Not(pin13.DigitalRead))
End Sub
CallSubPlus is similar to a timer that fires once. CallSubPlus allows you to run a sub after a specified duration. Like a timer it doesn...
link: The performance list in the first post. B4R v1.80 beta #2 will add (initial) support for ESP32....
link: ESP32 added to the list.
Which list? :)
Will it be supported by B4R in the "near" future?
...
link: ESP32 added to the list. Very fast......
B4R Question CallSubPlus(variableString....) Not possible at all? - Cableguy    
Mar 7, 2026 that actually executes this...
CallSubPlus(SubName as SubVoidByte, MsDelay as ULong, Tag as Byte) >>... between subs so that I can use it in my CallSubPlus call?????...
link: calling a subroutine by its name.
CallSubPlus(SubName as SubVoidByte, MsDelay as ULong, Tag as Byte...
link: myself correctly. What I meant was call the sub with CallSubPlus using the sting constant and once...
link:
Oh, sorry. I thought that you would use the string constant in CallSubPlus and you just wanted to...
B4J Question Stopping CallSubPlus - aaronk    
Jun 20, 2016Hi,
If you call a Sub using the CallSubPlus like below..
csu.CallSubPlus(Me, "Sub_1", 9000)
Which runs the sub 'Sub_1' in 9 seconds, what if after 3 seconds you want it to stop and not run that sub?
Is there a way in stopping the CallSubPlus from running once it has been told to run ?...
link: You can add this sub to CallSubUtils:
Public Sub RemoveCallsToSub(SubName As String)
If...
B4R Question Question about CallSubPlus. - tigrot    
Mar 2, 2018 the Call is queued. To better explain:
CallSubPlus("Routine1",10,0)
CallSubPlus("Routine2",20,0)
CallSubPlus("Routine3",30,0)
CallSubPlus("Routine4",40,0...
link: That's what I expected. And my guess too. The first tested element in the queue with an expired ...
link: )
CallSubPlus("S1",1000,0)
Log("D1")
CallSubPlus("S2",1001,0...
link: A real queue in my opinion is a list in which you can add an element and subtract in fifo manner wit...
B4R Question Doubt with CallsubPlus - Gerardo Tenreiro (first post)    
May 4, 2023 9600, entonces se me ocurrió usar la instrucción CallSubPlus con el siguiente código.
Este es el...
Solucionado, el error es que CallSubPlus pasa un parámetro y en la rutina es necesario recolectar dicho parámetro.
CallSubPlay("Rutina_Nombre",ms,etiqueta)
....
Private Sub Routine_Name (Etiqueta como...
link: me to use the CallSubPlus instruction with the following code.
' ENCODER
'
'...
B4R Question can we create a sub with parameters who are subs like callsubplus ? - candide (first post)    
Aug 10, 2021 written in B4R
in CallSubPlus definition we have:
CallSubPlus (SubName As SubVoidByte, DelayMs... i have to provide several subnames to this library .. and library will run subs when needed...
link: with callsubplus we can do:
CallSubPlus("DoSomething", 1000, 5)
'...
Sub...
link: the same thing I did in rHttpUtils, simply call the sub that you want. The developer using your library...
link: OK Thanks...
Spanish Problema con CallSubPlus y lectura del AD - josejad (first post)    
Sep 16, 2020   
(1 reaction)Si publicas cómo ha quedado tu código, puede servir para otros.
saludos¡¡...
link: Solucionado, mal uso de CallSubPlus, lo usaba como si fuera un Call Sub normal y no advertía que...
link: Hola José, no viene por ahí el tema, ya que coloque el log en la subrutina y muestra el valor cero, ...
link: , según el manual, CallSubPlus no bloquea la ejecución del hilo, por lo que puede que el Log del valor...
B4J Question CallSubPlus: OutOfMemoryError - Erel (first post)    
Jan 1, 2019   
(2 reactions) ( DoStep) Complete (Unused As Boolean)
Next
Sub DoStep as resumablesub
Sleep(5)
StepUp
Sleep(5)
StepDown
return True
End Sub
More info: Resumable subs that return values...
link: ) Complete
Next
Sub DoStep as resumablesub
Sleep(5)
StepUp
Sleep(5)
StepDown...
link:
DoStep
Next
.
Sub DoStep
Sleep(5)
StepUp
Sleep(5)
StepDown
End Sub
When...
link: There is no reason to use CallSubPlus.
Change your code to:
Sub DoStep
Sleep(5)
StepUp...
B4R Question Callsubplus within looper - Erel (first post)    
Jan 20, 2019Timers, Loopers and CallSubPlus...
link: Thanks Erel.
Can a callSubPlus be reset or cancelled?
Thanks...
link: CallSubPlus do not cancel previous calls....
link: use a timer or CallSubPlus to call the next iteration each time....
Page: 1  
2  
3  
4  
5  
6  
7