Page 1 of 1

[ LIST ] Problem on Loop with For inside For

Posted: Sun Nov 01, 2020 7:59 pm
by skinkairewalker
hello everyone !!

i am trying to compare informations between List Information like this code below :

Code: Select all

Procedure UnificarIguais(*Struct.Json)
  Debug "UnificarIguais()"
  
  counter.i = 0
  tmpName.s = ""
  listSize.i = ListSize(*Struct\other())-1
  
  For i = 0 To listSize
     SelectElement(*Struct\other(), i)
    
    For j = 0 To listSize

     SelectElement(*Struct\other(), j)
     Debug "J = "+*Struct\other()\name$
     
    Next j
  
  Next i
  
EndProcedure  
but when i run on browser , application crashes ...
what am I doing wrong ?

Re: [ LIST ] Problem on Loop with For inside For

Posted: Sun Nov 01, 2020 10:51 pm
by Peter
It would be easier for us to help you if you would post an executable code that we can use to reproduce your problem.