[ LIST ] Problem on Loop with For inside For

Just starting out? Need help? Post your questions and find answers here.
skinkairewalker
Posts: 120
Joined: Tue Jun 14, 2016 7:17 pm

[ LIST ] Problem on Loop with For inside For

Post 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 ?
User avatar
Peter
Posts: 1093
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

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

Post 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.
Post Reply