Help with an algorithm...

dunbarxx dunbarx at aol.com
Mon Aug 5 13:49:20 EDT 2019


I really do not like the use-list. It is difficult to format one's answers.

Here is a handler that places a few pieces of data into two variables. These
would be the two isolated lists of children derived from the parents as
described earlier. There is one difference between the two lists, the child
"xxx'.

on mouseUp
   put "aaa" & return & "bbb" & return & "ccc" into tNew
   put "aaa" & return & "xxx" & return & "ccc" into tOld
   put tOld & return & tnew into tAll
   
   repeat with y = 1 to the number of lines of tAll
      put line y of tAll into myArray[ line y of tAll]
   end repeat
  breakpoint
end mouseUp

Straightforward array stuff. The final list has four children, "xxx" being
added to the mix, as can be seen in the debugger at the breakpoint.

Craig




--
Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html




More information about the use-livecode mailing list