loop

  1. J

    Android Question For loop not going for Next

    Hi I have a code like this If ..... Then For i = 0 to List.Size - 1 If ..... Then If .... Then //do something Else //do something End If Else If .... Then //do something Else //do something...
  2. rleiman

    Android Question [SOLVED] - Checking for permissions in B4A results in a continuous loop

    Greetings, I used some of the code from a tutorial for background location checking in my app and the logs statements get stuck in a loop. This is the tutorial and this is the code based on the tutorial I used in my app. Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_READ_PHONE_STATE) Wait...
  3. R

    iOS Question Dim Within A Loop - Why?

    I have noticed this happens occasionally and maybe I should have asked the question earlier. This example applies to B4i but I have also noticed it happening in B4A. Dim ThisPosition As LatLng 'Before the loop Do While Locations.NextRow...
  4. R

    Android Question Exoplayer Loop function

    If u use a Http:// source like Sub Activity_Create(FirstTime As Boolean) If FirstTime Then player1.Initialize("player") Dim sources As List sources.Initialize sources.Add(player1.CreateUriSource("http://192.168.178.16/video/film.mp4")) player1.Prepare(player1.CreateListSource(sources)) Can...
  5. F

    Android Question [SOLVED]Very Slow Loop

    I have a for-loop where I fill with data a string variable (that I have already Created). It takes 6 to 10 secs to complete. Log($"BEFORE loop- $time{DateTime.Now}"$) Dim n As Int = crs.RowCount - 1 Dim lvHtml As String = $"<!DOCTYPE...
  6. P

    B4J Question mysql resultset to xml

    So I'm most likely just being a bit thick today but i can't get my head around how to get this to work; The aim being to have an xml builder populated from a database. 'Handler class Sub Class_Globals Private mreq As ServletRequest 'ignore Private mresp As ServletResponse 'ignore '...
  7. G

    B4J Question Loop No inLabels no Form

    Hello . I need a help how can I loop in all form's Labels (B4j)? ???? For i = 0 to MyForm.GetView ???? log(label.text) Next
Top