How do I shorten this script? Use 'repeat with'?

hakan at exformedia.se hakan at exformedia.se
Fri Nov 13 03:39:31 EST 2020


Great!

For me it works without adding 'the name of grc ”k1”‘. This works perfectly:

   set the loc of grc "k1" to the width of this card/2, the height of this card/2
   put "k1" into tPrevious
   repeat with i = 2 to 5
      put "k" & i into tName
      set the topleft of grc tName to item 1 of the topright of grc tPrevious - 1, item 2 of the topright of grc tPrevious
      put tName into tPrevious
   end repeat

Did you maybe forget ”grc” somewhere?

:-Håkan
On 12 Nov 2020, 16:00 +0100, williamdesmet at gmail.com, wrote:
>
> I added 'the name of grc "k1" to the script and now it works.



More information about the use-livecode mailing list