iOS Question delay in call sub

cloner7801

Active Member
Licensed User
Longtime User
Hi,
I want to give a delay in callsub for example delay for 1 or 2 second
How can I do this?
 

cloner7801

Active Member
Licensed User
Longtime User
I have a question ?

I have this sub

B4X:
Sub getLed(Parent As Panel) As View
    Dim ao As Int
    ao = 0
  
For Each v As View In Parent.GetAllViewsRecursive
     Dim tagname As String
    tagname = v.Tag

   
  If v Is ImageView And tagname.Contains("http") Then
    ao = ao + 1
'    CallSubDelayed2(Me,"getLed2",v.Tag)
' csu is initialize in page show's sub

    csu.CallSubPlus2(Me, "getLed2", 500*ao, Array(v.Tag)) 'run in one second

  
End If
Next
ao = 0
'Log("View not found: " & Name)
Return Null
End Sub

But this delay doesn't work !
and all of requests to getLed2 send together
 
Upvote 0
Top